class Fixnum IS_FIZZBUZZ = -> m, n { n % m == 0 }.curry alias _to_s to_s def to_s case self when IS_FIZZBUZZ[15] "FizzBuzz" when IS_FIZZBUZZ[5] "Buzz" when IS_FIZZBUZZ[3] "Fizz" else _to_s end end end puts [*1..100]
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く