What if the user was a function?

Andre Staltz ask this question at JSConf. Exploring that question introduces some very interesting ideas about functional programming, and how we can model user/computer interactions.