diary

I like Hatena Star with a text selection.

Entries from 2020-09-07 to 1 day

2020-09-06

def fibo(n) n <= 2 ? 1 : fibo(n-1) + fibo(n-2) end def each_with_ractor(enum, &block) env = Class.new env.define_singleton_method :call, &block enum.map do |v| Ractor.new(v, env) do |v, env| env.call(v) end end.map(&:take) end pp each_with…