Skip to content

Instantly share code, notes, and snippets.

@zhuomingliang
Forked from TimToady/gist:1946473
Created March 1, 2012 10:33
Show Gist options
  • Save zhuomingliang/1948961 to your computer and use it in GitHub Desktop.
Save zhuomingliang/1948961 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