How do you write a function for the output of a state machine?
Monads.
“What’s your utility function?”″This Haskell program.”
Does the use of the word “function” in “utility function” normatively include arbitrary Turing-complete things?
I don’t even know any Haskell—I just have a vague idea that a monad is a function that accepts a “state” as part of its input, and returns the same kind of “state” as part of its output. But even so, the punchline was too good to resist making.
Monads.
“What’s your utility function?”
″This Haskell program.”
Does the use of the word “function” in “utility function” normatively include arbitrary Turing-complete things?
I don’t even know any Haskell—I just have a vague idea that a monad is a function that accepts a “state” as part of its input, and returns the same kind of “state” as part of its output. But even so, the punchline was too good to resist making.