Skip to content

Instantly share code, notes, and snippets.

@ab5tract
Created July 15, 2023 08: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 ab5tract/bb094655f1829de2906759d83e54264f to your computer and use it in GitHub Desktop.
Save ab5tract/bb094655f1829de2906759d83e54264f to your computer and use it in GitHub Desktop.
Artificial map element threshold in REPL
my @a = <no> xx 103; # Golfed value.. any list longer than 102 elements is affected
my $x; @a.map: { $x++ };
$x #=> 102
# note this:
my $x; @a.map: { $x++ }; $x #=> 103
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment