Skip to content

Instantly share code, notes, and snippets.

@lizmat
Created December 10, 2022 22:27
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 lizmat/d1efef0685df8ce3e26cf2afedf6cfa0 to your computer and use it in GitHub Desktop.
Save lizmat/d1efef0685df8ce3e26cf2afedf6cfa0 to your computer and use it in GitHub Desktop.
my constant &execute = do {
my $register := 1;
multi execute( "addx", \value ) { $register, $register := $register + value }
multi execute( "noop" ) { $register }
&execute
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment