Skip to content

Instantly share code, notes, and snippets.

@giruzou
Last active November 24, 2018 12:45
Show Gist options
  • Save giruzou/542c1cfa1d2bff622175f227209607c0 to your computer and use it in GitHub Desktop.
Save giruzou/542c1cfa1d2bff622175f227209607c0 to your computer and use it in GitHub Desktop.
競プロでよく使うUFO ref: https://qiita.com/DrqYuto/items/3390840856e8a291c4f5
case (foo <=> bar) <=> 0
when 0
#等しい時
when 1
# fooのほうが大きい時
else
# fooのほうが小さい時
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment