From: Robert Klemme Date: 2008-07-02T21:02:48+09:00 Subject: Re: Ruby Idiom for dynamic programming? (request for comments) 2008/7/2 Lars Christensen : > Random idea i had... > > I sometimes make custom classes/method for caching output of > functions, i.e. for dynamic programming. To generalise this, i though > it would be possible to implement it like this: There is memoize already... Kind regards robert -- use.inject do |as, often| as.you_can - without end