Hi,

Cory Spencer wrote:
> In the spectest suite (specifically in:  t/spec/S32-array/kv.t), the last 
> several tests seem to be testing for named arguments to kv:
> 
>      # check the non-invocant form with named arguments
>      my @array = <a b c d>;
>      my @kv = kv(:array(@array));
>      #?rakudo skip 'named args'
>      is(+...@kv, 8, 'kv(:array(@array)) returns the correct number of elems');
>      #?rakudo skip 'named args'
>      is(~...@kv, "0 a 1 b 2 c 3 d", 'kv(:array(@array)) has no inner list');
> 
> I've found no mention of named arguments to kv in the spec, so I'm 
> wondering if these tests are out of date and should be removed...

S32/Containers.pod says
539: our List multi method kv ( @array: Matcher *...@indextests ) is export

positional arguments can also be used as named ones, so :array(@a) is
OK. Rakudo doesn't support that duality yet (due to Parrot limitations,
I've been told).

Cheers,
Moritz

> -c

Reply via email to