Created
March 12, 2009 22:33
-
-
Save j1n3l0/78324 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# candidate for abs() in perl6 - just not sure where it should live | |
our Num multi method abs is export { self < 0 ?? self * -1 !! self } | |
# multi abs(Num $number) { $number < 0 ?? $number * -1 !! $number } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment