chap4, 4.6 unpacking code sample failed to work #45

Open
woosley opened this Issue Jan 28, 2011 · 0 comments

Projects

None yet

1 participant

@woosley
woosley commented Jan 28, 2011
# same thing:
sub first-is-largest(@a) {
    my :($first, *@rest) := \(|@a); 
                                            ~~~~~~~~~~This line is not working in rakudo
    return $first >= all(@rest);
}

(17:06:38) woosley: rakudo: @a = 2, 3, 4; my :($f, *$o) := (|@a); say $f.perl
(17:06:41) p6eval: rakudo 549d2a: OUTPUT«===SORRY!===␤Malformed my at line 22, near ":($f, $o) "␤»

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment