realworldocaml / book

V2 of Real World OCaml
https://dev.realworldocaml.org
Other
1.18k stars 175 forks source link

New comment on block [block-idp7359568] #1975

Closed Chris00 closed 11 years ago

Chris00 commented 11 years ago

"building block that is used for building", hum.

bactrian commented 11 years ago

This comment references this from milestone beta1: https://realworldocaml.org/beta1/en/html/variables-and-functions.html#idp7359568

Context:

A function is recursive if it refers to itself in its definition. Recursion is important in any programming language, but is particularly important in functional languages, because it is the fundamental building block that is used for building looping constructs. (As we'll see in the section called “Imperative programming”, OCaml also supports imperative looping constructs like for and while, but these are only useful when using OCaml's imperative features.)
yminsky commented 11 years ago

Blech! Good catch. Fixed.