cephalopodshop (@macrocephalopod) on X

X (formerly Twitter) ·

1 min read Original article ↗

One of my favorite math/programming mashups is that you can take an algebraic data type (like in OCaml, Haskell, F# etc) and convert it into a function, and the series expansion of the function counts the number of instantiations of the data type.

11:42 AM · Mar 2, 2021