Sha256: b665e16ac45fd071ee73ae04f31df5ecc904f87dc8a6a6427522705980000a7a
Contents?: true
Size: 390 Bytes
Versions: 2
Compression:
Stored size: 390 Bytes
Contents
send :fibo, n:5 send :if, f:1 recv :fibo do |n| send :gt, n:n send :dec1, n:n send :dec2, n:n send :sum, a:n # if tagged send :sum, b:n # if tagged right end recv :if do |c, t, f| if c send :fibo, n:t else send :fibo, n:f end end recv :sum do |a, b| send :if, t:(a + b) end recv :dec1 do |n| send :fibo, n:(n-1) end recv :dec2 do |c| send :fibo, n:(n-2) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
damsi-0.0.2 | fixtures/fibonacci.dfg |
damsi-0.0.1 | fixtures/fibonacci.dfg |