Sha256: 67776d2e1073cf868459e1dc14620708fd9b3294f21c6570e1b80c38790fd71d

Contents?: true

Size: 193 Bytes

Versions: 27

Compression:

Stored size: 193 Bytes

Contents

{
  fibonnaci = (n) => {
    if n < 2
      n
    else
      fibonnaci(n - 1) + fibonnaci(n - 2)
    end
  }

  (0..20).each do |i|
    puts("fibonnaci({i}) = {fibonnaci(i)}")
  end

  nothing

Version data entries

27 entries across 27 versions & 3 rubygems

Version Path
template-ruby-0.5.6 docs/fibonnaci.template
language-ruby-0.5.6 docs/fibonnaci.template
code-ruby-0.5.6 docs/fibonnaci.template
template-ruby-0.5.5 docs/fibonnaci.template
language-ruby-0.5.5 docs/fibonnaci.template
code-ruby-0.5.5 docs/fibonnaci.template
template-ruby-0.5.4 docs/fibonnaci.template
language-ruby-0.5.4 docs/fibonnaci.template
code-ruby-0.5.4 docs/fibonnaci.template
template-ruby-0.5.3 docs/fibonnaci.template
language-ruby-0.5.3 docs/fibonnaci.template
code-ruby-0.5.3 docs/fibonnaci.template
template-ruby-0.5.2 docs/fibonnaci.template
language-ruby-0.5.2 docs/fibonnaci.template
code-ruby-0.5.2 docs/fibonnaci.template
language-ruby-0.5.1 docs/fibonnaci.template
template-ruby-0.5.1 docs/fibonnaci.template
code-ruby-0.5.1 docs/fibonnaci.template
template-ruby-0.5.0 docs/fibonnaci.template
language-ruby-0.5.0 docs/fibonnaci.template