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
On Mon, Jan 26, 2009 at 12:33:15AM +0100, Moritz Lenz wrote:
: 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