Add tags

Add tags to the following comment
見掛け上は条件分岐を使わず, かつ, FizzとBuzzがコード中に一回ずつしか出現しないようにしてみました. 
1
2
3
4
1.upto(20){|i|
  puts({0 => "#{i}: hoge", i%5 => "#{i}: ", i%3 => "#{i}: Fizz"}.
         merge({i%5 => 'Buzz'}){|k,a,b| "#{a}#{b}"}[0])
}

Add tags

The input will be splited to tags with space.

Index

Feed

Other

Link

Pathtraq

loading...