Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ujihisa/fibs

gem install fibs
https://github.com/ujihisa/fibs

Last synced: about 1 month ago
JSON representation

gem install fibs

Awesome Lists containing this project

README

        

As a command

$ fibs 10
1
1
2
3
5
8
13
21
34
55

As a library

require 'fibs'
p Fibs.(10)
#=> [1, 1, 2, ..., 55]

Or

require 'fibs'
p Fibs.new(1, 1).take(10)
#=> [1, 1, 2, ..., 55]

Or

require 'fibs'
Fibs.new(1, 1).each do |x|
...
end