Post History
goruby, 1 byte f Okay, so that's a bit unfair. 😂 The definition of f from golf_prelude.rb (which is what goruby embeds) is quite golfy in itself: def f(m = 100) 1.upto(m){|n|puts'FizzBuzz ...
Answer
#2: Post edited
- ## goruby, 1 byte
```- f
- ```
- Okay, so that's a bit unfair. 😂 The definition of `f` from `golf_prelude.rb` (which is what goruby embeds) is quite golfy in itself:
```- def f(m = 100)
- 1.upto(m){|n|puts'FizzBuzz
- '[i=n**4%-15,i+13]||n}
- end
- ```
- Substituting `m` with 100 directly gives us the Ruby version, which weighs in at 51 bytes:
```- 1.upto(100){|n|puts'FizzBuzz
- '[i=n**4%-15,i+13]||n}
- ```
- ## goruby, 1 byte
- ```ruby
- f
- ```
- Okay, so that's a bit unfair. 😂 The definition of `f` from `golf_prelude.rb` (which is what goruby embeds) is quite golfy in itself:
- ```ruby
- def f(m = 100)
- 1.upto(m){|n|puts'FizzBuzz
- '[i=n**4%-15,i+13]||n}
- end
- ```
- Substituting `m` with 100 directly gives us the Ruby version, which weighs in at 51 bytes:
- ```ruby
- 1.upto(100){|n|puts'FizzBuzz
- '[i=n**4%-15,i+13]||n}
- ```
#1: Initial revision
## goruby, 1 byte ``` f ``` Okay, so that's a bit unfair. 😂 The definition of `f` from `golf_prelude.rb` (which is what goruby embeds) is quite golfy in itself: ``` def f(m = 100) 1.upto(m){|n|puts'FizzBuzz '[i=n**4%-15,i+13]||n} end ``` Substituting `m` with 100 directly gives us the Ruby version, which weighs in at 51 bytes: ``` 1.upto(100){|n|puts'FizzBuzz '[i=n**4%-15,i+13]||n} ```