uglymemo-0.1.0.1: A simple (but internally ugly) memoization function.

Data.MemoUgly

Synopsis

Documentation

memoIOSource

Arguments

:: Ord a 
=> (a -> b)

Function to memoize

-> IO (a -> IO b) 

Memoize the given function by allocating a memo table, and then updating the memo table on each function call.

memoSource

Arguments

:: Ord a 
=> (a -> b)

Function to memoize

-> a -> b 

The pure version of memoIO.