Skip to content

Instantly share code, notes, and snippets.

@TimToady
Created March 1, 2012 01:33
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save TimToady/1946473 to your computer and use it in GitHub Desktop.
sub logic { first {! try .()}, @_ }
for 1,2,3 X 1,2,3 -> $x, $y {
logic { $x > 2 },
{ $x + $y == 5 },
{ $y < 3 },
{ say "$x + $y == 5"; Nil }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment