Fibonacci numbers in J
Example for versions
j602
This example uses iterative definition of Fibonacci numbers.
load 'printf'
fibi=: 3 : '(,+/@(_2&{.))^:y(0 1)'
fstr=: '...' ,~ ,~^:4 '%d, '
fstr printf }.fibi 15
Comments
]]>blog comments powered by Disqus
]]>