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

Version Path
typeprof-0.7.0 smoke/demo3.rb
typeprof-0.6.1 smoke/demo3.rb
typeprof-0.6.0 smoke/demo3.rb
typeprof-0.5.4 smoke/demo3.rb
typeprof-0.5.3 smoke/demo3.rb
typeprof-0.5.2 smoke/demo3.rb
typeprof-0.5.1 smoke/demo3.rb
typeprof-0.5.0 smoke/demo3.rb
typeprof-0.4.2 smoke/demo3.rb
typeprof-0.4.1 smoke/demo3.rb
typeprof-0.4.0 smoke/demo3.rb
typeprof-0.3.0 smoke/demo3.rb
typeprof-0.2.0 smoke/demo3.rb
typeprof-0.1.4 smoke/demo3.rb
typeprof-0.1.3 smoke/demo3.rb
typeprof-0.1.2 smoke/demo3.rb
typeprof-0.1.1 smoke/demo3.rb
typeprof-0.1.0 smoke/demo3.rb