RosettaCodeData/Task/Integer-comparison/E/integer-comparison.e
Ingy döt Net db842d013d A-M baby
2013-04-10 21:29:02 -07:00

6 lines
231 B
Text

def compare(a :int, b :int) {
println(if (a < b) { `$a < $b` } \
else if (a <=> b) { `$a = $b` } \
else if (a > b) { `$a > $b` } \
else { `You're calling that an integer?` })
}