3 ms·
Folds are a restricted form of recursion which always terminate. Structural recursion (folds) is to general recursion (let rec) as the "for" loop is to the "wh
by emillon 12y ago
Folds are a restricted form of recursion which always terminate.
Structural recursion (folds) is to general recursion (let rec) as the "for" loop is to the "while" loop.
- dragonwriter 12y ago> Structural recursion (folds) is to general recursion (let rec) as the "for" loop is to the "while" loop. So, they are strictly equivalent? </Clanguage>
- emillon 12y agoThis notion of "for" loop is more a notion of "foreach ... in" than the C version which is indeed equivalent to a while loop.