Created
March 13, 2009 00:20
-
-
Save j1n3l0/78373 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
# How does one CAST from a Str to an Int in rakudo? | |
# This is an example going from an Int to a Str ... | |
multi sub f($x is rw) { | |
say 'before ' ~ $x ~ ' = ' ~ $x.WHAT; | |
$x = ~$x; | |
say 'after ' ~ $x ~ ' = ' ~ $x.WHAT; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment