Imagine a van driver doing his days work. He starts off by loading his van with the days deliveries. Then he fuels up and progresses around his route delivering packages until he's done.
Now with monads.
Loads his van with the days deliveries. Drives to the gas station (with a new van following along behind). Puts fuel in the new van and transfers all the packages from the first van to the second. Drives to the first delivery and offloads the first package to the customer. Then tranfers all the remaining packages to another new van. Progresses to the second delivery and offloads a customer package and then transfers all the remaining packages to yet another new van. ...
Cool huh!
In reply to Re: Functional programming ?
by BrowserUk
in thread Functional programming ?
by spx2
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |