var deathToll = 0 function fireZeMissiles() { if (deathToll > 7000000000) { console.log('the world has ended. everyone is dead') return } deathToll += Math.round(Math.random() * 100000000) console.log('Oh no, ', deathToll, ' dead') }
http://haskell.cs.yale.edu/wp-content/uploads/2011/01/cs.pdf • https://www.cs.kent.ac.uk/people/staff/dat/tfp12/tfp12.pdf • Coders at Work • https://en.wikipedia.org/wiki/Lambda_calculus