Catalog of computation strategies
Submitted by metaperl on Mon, 04/24/2006 - 2:38pm.
- when something may or may not return a value
- when something may return 0,1 or more values
- use a List... but ask yourself: isn't Maybe just a subcase of list? We can restate Maybe as something which returns 0 or 1 value while we can see a list of something which may return 0..n values.
Pardon me while the brainstorm continues, but I just thought about the children of an n-ary tree - asking for children of a node returns a list which is a monad.