Sha256: 011ce92911c58d1e17fea18097bab223e9bbe212c99aae4d9d3ebef7342d387f

Contents?: true

Size: 122 Bytes

Versions: 48

Compression:

Stored size: 122 Bytes

Contents

fib = Enumerator.new do |y|
  a = b = 1
  10.times do
    y << a
    a, b = b, a + b
  end
end

fib.each do |e|
  p e
end

Version data entries

48 entries across 48 versions & 2 rubygems

Version Path
rack-app-11.0.2 spike/enum.rb
rack-app-11.0.1 spike/enum.rb
rack-app-11.0.0 spike/enum.rb
rack-app-10.0.0 spike/enum.rb
rack-app-9.0.0 spike/enum.rb
rack-app-8.1.0 spike/enum.rb
rack-app-8.0.1 spike/enum.rb
rack-app-8.0.0 spike/enum.rb
mountapi-0.11.1 vendor/bundle/ruby/2.7.0/gems/rack-app-7.7.0/spike/enum.rb
rack-app-7.7.0 spike/enum.rb
rack-app-7.6.5 spike/enum.rb
rack-app-7.6.4 spike/enum.rb
rack-app-7.6.3 spike/enum.rb
rack-app-7.6.2 spike/enum.rb
rack-app-7.6.1 spike/enum.rb
rack-app-7.6.0 spike/enum.rb
rack-app-7.5.2 spike/enum.rb
rack-app-7.5.1 spike/enum.rb
rack-app-7.5.0 spike/enum.rb
rack-app-7.4.0 spike/enum.rb