Kevin Ryde on Tue, 09 Dec 2014 09:15:40 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

memoize.gp


I had a go at a generic memoize to wrap functions, including
possibly anonymous functions.  It started as a way to write a
few recurrences in a simple-minded way, then got a bit carried
away.  The cutest bit is that because it can be applied to an
existing function you can experiment with memory vs time for
possibly re-used values.

http://user42.tuxfamily.org/pari-memoize/index.html