Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created September 2, 2019 18:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Whateverable/0c0fb1e733744e421d52ea3dd3cd4aa6 to your computer and use it in GitHub Desktop.
Save Whateverable/0c0fb1e733744e421d52ea3dd3cd4aa6 to your computer and use it in GitHub Desktop.
evalable6
my @nums = (1, 20, 333, 40, 55); my @sums=(0); for @nums -> $n { @sums.push(@sums[*-1]+$n}; @sums
(exit code 1)
===SORRY!=== Error while compiling /tmp/Hj8xQxRpjT
Unable to parse expression in argument list; couldn't find final ')' (corresponding starter was at line 1)
at /tmp/Hj8xQxRpjT:1
------> r @nums -> $n { @sums.push(@sums[*-1]+$n⏏}; @sums
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment