Stuff I find useful and want to remember. Hopefully it helps others too.
tisdag 15 december 2009
<=> The spaceship operator
The comparison operator in Ruby <=> (also called the spaceship operator) returns -1, 0, or +1 depending on whether the first value is less, equal or greater than the second value.
Inga kommentarer:
Skicka en kommentar