Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created March 1, 2020 23:04
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/ff1d2ff6b28beb4e684803b58695bfb6 to your computer and use it in GitHub Desktop.
Save Whateverable/ff1d2ff6b28beb4e684803b58695bfb6 to your computer and use it in GitHub Desktop.
evalable6
sub a(Int $n) { 1 .. Inf).first( *.base(2) %% $n ).base(2) }; say a(30000020); say now - INIT now
(exit code 1)
===SORRY!=== Error while compiling /tmp/dbIJMcg9NU
Missing block
at /tmp/dbIJMcg9NU:1
------> sub a(Int $n) { 1 .. Inf⏏).first( *.base(2) %% $n ).base(2) }; sa
expecting any of:
statement end
statement modifier
statement modifier loop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment