re: Understanding the Fold Operation VIEW POST

VIEW PARENT COMMENT VIEW FULL DISCUSSION

In OCaml and F#, List.reduce and List.fold behave as I describe. In F#, List.reduce throws when given an empty list. In OCaml it returns None or Some for a non-empty list.

code of conduct - report abuse