haskell-cafe@haskell.org
[Top] [All Lists]

Re: [Haskell-cafe] Re: Haskell and "memoization"

Subject: Re: [Haskell-cafe] Re: Haskell and "memoization"
From: Daniel Fischer
Date: Wed, 16 Dec 2009 08:20:54 +0100
Am Mittwoch 16 Dezember 2009 08:14:40 schrieb Maciej Piechotka:
>
> Sorry I'm asking - is there any reason why fib memorization goes beyond:
>
> fib' = 1 : 1 : zipWith (+) fib' (tail fib')
> fib n = fib' !! n
>
> Regards
>

Illustrating different memoisation techniques. This technique is rather limited 
in scope, 
some of the others are fairly generally applicable.
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@xxxxxxxxxxx
http://www.haskell.org/mailman/listinfo/haskell-cafe

<Prev in Thread] Current Thread [Next in Thread>