|
|
|
|
|
by colanderman
5435 days ago
|
|
>I recommend that you use SICP to learn Scheme, as it will make more sense when you actually know how to use it. I used it my entire graduate career, under an advisor who is part of the inner circle of PLT/Racket. I'm quite familiar with it. > P.S. If you're thinking of those problems in terms of iteration and mutation, you're probably doing it wrong :). Think more functionally. I primarily program in Mercury and Coq (languages which are both purely functional). I can promise you I have no problem "thinking functionally". The solution presented in SICP is not structurally recursive (while the "naïve" solution is) but rather relies on an accumulator, tail calls, and a measure to terminate recursion... this is much closer in spirit to an iterative algorithm than a recursive one. |
|