HN user

miraks

8 karma
Posts0
Comments4
View on HN
No posts found.

If you gave me a model released two years ago and today and let me do some programming with both, I would have no problems telling you which one was released two years ago; progress on this front is very noticeable. But if you let me chat with each one for an hour, I'm honestly not sure I would be able to tell the difference.

  (1..100).each { |n| { 15 => 'FizzBuzz', 3 => 'Fizz', 5 => 'Buzz' }.find { |d, s| n % d == 0 }.then { |_, s| puts s || n } }