From: Dirk Meijer Date: 2005-12-27T07:44:41+09:00 Subject: Re: ruby beats them all ------=_Part_33280_10376858.1135637069009 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline i'm sorry for reviving an old topic, but hows this: def fib(n) list=3D[0,1] 2.upto(n-1) do |s| list << (list[s-2]+list[s-1]) end list end greetings, Dirk. ------=_Part_33280_10376858.1135637069009--