Last active
November 13, 2019 22:16
-
-
Save ash/b4352a716a3312ac944cf6c11a5fada7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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