Lots of mundane human activities are most naturally represented as while (or do-while) loops.
For example, wiping one's butt:
do {
wipe()
} while { color_of_tp() !== "white" }
Or anything that falls under cleaning, really.
Although I'd argue while loops belong most at home in imperative code. (Cleaning for example is like the impure function par excellence, done only for side effect)
For example, wiping one's butt:
Or anything that falls under cleaning, really.Although I'd argue while loops belong most at home in imperative code. (Cleaning for example is like the impure function par excellence, done only for side effect)