4
斐波那契功能如何记忆?
斐波那契功能是通过什么机制记忆的? fib = (map fib' [0..] !!) where fib' 1 = 1 fib' 2 = 1 fib' n = fib (n-2) + fib (n-1) 与此相关的是,为什么没有这个版本? fib n = (map fib' [0..] !! n) where fib' 1 = 1 fib' 2 = 1 fib' n = fib (n-2) + fib (n-1)