Skip to content

Instantly share code, notes, and snippets.

@davidhauck
Created May 2, 2013 19:07
fn compare(x : int, y : int) -> ~str
{
if (x > y)
{
~"Greater than"
}
else if ( x == y)
{
~"Equal"
}
else
{
~"Less than"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment