So, sometimes when I get home too early but still keep drinking I like to answer random stuff on SO. And every now and then, there is a random question that is so wrong and clearly by somebody just starting to learn programming, that it becomes a challenge to answer it.
In this case: http://stackoverflow.com/questions/18026506/i-need-something-similar-to-sleep-function-for-a-program-that-uses-opengl
I probably did a piss poor job as a teacher, but it got me thinking, how would one approach this in a functional language? I did my share of Haskell when it was still a pure academic experiment, but never really took to it.
So, how would a functional approach to this simple but natural problem look like?