mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
added f
for 1 byte FizzBuzz because Hexagony has such feature
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
687308cf0d
commit
c8d17d71d7
1 changed files with 5 additions and 0 deletions
|
@ -50,6 +50,11 @@ class Object
|
|||
puts "#{a}ello, #{b}orld#{c}"
|
||||
end
|
||||
|
||||
def f(m = 100)
|
||||
1.upto(m){|n|puts'FizzBuzz
|
||||
'[i=n**4%-15,i+13]||n}
|
||||
end
|
||||
|
||||
alias say puts
|
||||
|
||||
def do_while
|
||||
|
|
Loading…
Add table
Reference in a new issue