Sha256: 703ee6ccfafdf0892b66090f1297434a19922a3e9f3d8fe92ba447d131f995b2
Contents?: true
Size: 174 Bytes
Versions: 18
Compression:
Stored size: 174 Bytes
Contents
# recursive method def fib(x) if x <= 1 x else fib(x - 1) + fib(x - 2) end end fib(40000) __END__ # Classes class Object def fib : (Integer) -> Integer end
Version data entries
18 entries across 18 versions & 1 rubygems