Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chap4, 4.6 unpacking code sample failed to work #45

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

chap4, 4.6 unpacking code sample failed to work #45

woosley opened this issue Jan 28, 2011 · 0 comments
Labels

Comments

@woosley
Copy link

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
Labels
Projects
None yet
Development

No branches or pull requests

1 participant