Skip to content

Instantly share code, notes, and snippets.

@colomon
Created July 22, 2010 21:56
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 colomon/486667 to your computer and use it in GitHub Desktop.
Save colomon/486667 to your computer and use it in GitHub Desktop.
our multi sub infix:<div>(Int $a, Int $b) {
pir::div__III($a, $b) - ((($a < 0) ?^ ($b < 0)) ?& ?($a % $b)).Int;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment