pugs, rakudo and elf all agree that [1..4].elems should be 4 - and I
agree too.

What about
sub f(@a) { @a.elems }; say f([1, 2, 3, 4])
Again all three implementations say that it's 4, and I'm confused.

Now for
say  elems [1, 2, 3, 4]
pugs says 4, rakudo says 1, and elf says "Undefined subroutine
&GLOBAL::elems called".
Now, which one is right?

What about
say elems([1, 2, 3, 4],)
pugs says 4, rakudo says 1, and elf says... you get the picture.

Cheers,
Moritz

Reply via email to