Skip to content

Instantly share code, notes, and snippets.

@ash
Last active November 13, 2019 22:16
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 ash/b4352a716a3312ac944cf6c11a5fada7 to your computer and use it in GitHub Desktop.
Save ash/b4352a716a3312ac944cf6c11a5fada7 to your computer and use it in GitHub Desktop.
my int $foo = 300_000;
multi postfix:<++> (atomicint $int is rw) is default {
    $int⚛--
// vs
// $int--
}
sub f() {
    $foo++ for ^100_000;
}
await do {
    start {f}
    start {f}
}
say $foo;
#$ raku a2.raku
#100000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment