Skip to content

Instantly share code, notes, and snippets.

Created August 6, 2010 03:37
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 anonymous/510793 to your computer and use it in GitHub Desktop.
Save anonymous/510793 to your computer and use it in GitHub Desktop.
our multi sub infix:<cmp>($a, $b) {
if $a eq $b {
0;
} else {
$a lt $b ?? -1 !! 1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment