Advertisement
Guest User

Untitled

a guest
Feb 5th, 2016
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 6 0.86 KB | None | 0 0
  1. ubuntu@ubuntu:~$ perl6
  2. > my &code = { ->\c,\m{for ^c {.[+*]=[+] .[*X-1,2]for m;m[+*]=[m[*-2;*] »+«m[*-1]]};m} }
  3. ===SORRY!=== Error while compiling <unknown file>
  4. Quantifier quantifies nothing
  5. at <unknown file>:1
  6. ------> ,\m{for ^c {.[+*]=[+] .[*X-1,2]for m;m[+*]=[m[*-2;*] »+«m[*-1]]};m} }
  7.     expecting any of:
  8.         postfix
  9.         statement end
  10.         statement modifier
  11.         statement modifier loop
  12.         prefix or term
  13.         prefix or meta-prefix
  14. > my &code = { ->\c,\m{for ^c {.[+*]=[+] .[*X-1,2]for m;m.push: [map {[+] m[*X-1,2;$_]},m[0].keys]};m} }
  15. ===SORRY!=== Error while compiling <unknown file>
  16. Quantifier quantifies nothing
  17. at <unknown file>:1
  18. ------> [+] .[*X-1,2]for m;m.push: [map {[+] m[*⏏X-1,2;$_]},m[0].keys]};m} }
  19.     expecting any of:
  20.         argument list
  21.         prefix or term
  22.         prefix or meta-prefix
  23. >
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement