From: Shashank Date Date: 2002-09-04T21:44:15+09:00 Subject: Re: option remember Take at look at "Memoize" (which is the technical term for what you are trying to do). Got this from RAA: Homepage: http://www.ce.chalmers.se/~feldt/ruby/extensions/memoize/ "C�dric Foll" wrote in message news:3d75dd69$0$575$626a54ce@news.free.fr... > Hi, > > i'm trying to code an 'option remember' in Ruby. > This option should be used in order to save the result allready computed of > a function. > For exemple: fib=remember(:fib) transorm the fibonacci function in aO(n) > function. > > I've tried a lot of things but nothing run, i've found nothing in the > progmatic programmer and ruby in a nutshell books. > Nothing in the RAA. > > Regards. > > -- > Cedric Foll > m�l: cedric dot foll at laposte dot net > >