|
|
|
|
|
by lisper
4538 days ago
|
|
Well, it can't be straight out of SICP because SICP uses Scheme and this code is in Haskell. And, in fact, if you did a straightforward translation of the Haskell code back into Scheme it wouldn't work. Figuring out why it doesn't work in Scheme but it does in Haskell is left as an exercise. |
|
[0] https://mitpress.mit.edu/sicp/full-text/book/book-Z-H-24.htm...
[1] https://mitpress.mit.edu/sicp/full-text/book/book-Z-H-27.htm...