Return a list or array of the first n fibonacci numbers.
Here's an attempt in Ruby; let's see some concise
ANS Forth solutions.
def fib n
a,b=0,1
n.times.map{a,b=b,a+b; a}
end
fib 9
==>[1, 1, 2, 3, 5, 8, 13, 21, 34]
--
This is war, and our greatest enemy is the enemy within: the submissive,
apologetic, guilt-ridden, self-hating drone. The moment we manage to destroy
the enemy within, destroying the rest of our enemies will be a walk in the
park.
http://www.kolumbus.fi/aquilon/londonspeech12.htm