News for hackers. Stuff that matters.
Re:How not to teach recursion (2021) by jlokier on Saturday June 18, 2022 @07:33PM (#31794770)
> A recursive definition is: "natural numbers are 0 or a natural number + 1".

Note that this isn't enough by itself to support proof by induction.

Consider the definition of a list in Haskell which is analogous to the above definition of natural numbers: "lists are [] or a list with an element prepended".

Infinite lists satisfy this definition.

There are no comments on this comment yet.