[Haskell-cafe] Memo + IORef
tmorris at tmorris.net
Sat Jun 16 05:22:14 EDT 2007
I was told on #haskell (IRC) the other day that it is possible to write
a general memoisation table using IORef and unsafePerformIO. I can't
think of how this can be achieved without writing to a file, since a
function cannot hold state between invocations. What am I missing?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 191 bytes
Desc: OpenPGP digital signature
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20070616/376489a8/signature.bin
More information about the Haskell-Cafe