The Free data type works, but does require your language (e.g. Scala) have the ability to serialize closures. If you don't have or don't want that restriction, there are ways to workaround it, albeit with some inconvenience.
Replying to @jdegoes
You can use an internalized representation of the lambda calculus. But of course, without macros, the syntax will be absolutely horrible.
5:48 PM - 6 Dec 2017
0 replies
0 retweets
3 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Read my blog!