Fibonacci numbers in E
Example for versions
E-on-Java 0.9.3
var s := [0, 1]
var res := ""
for _ in 1..16 {
def [a, b] := s
s := [b, a + b]
res := res + b.toString(10) + ", "
}
println(res + "...")
Comments
]]>blog comments powered by Disqus
]]>