Comment

Comment by nix-zarathustra

One of the most beautiful things in Ruby that I have ever seen is this fibonacci code.

  fib = Hash.new do |k, v|
    next 1 if v == 0 || v == 1
    k[v-1] + k[v-2]
  end

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton