Iowa Type Theory Commute
Iowa Type Theory Commute
Aaron Stump
Jan 16, 2020 · 10 min

Example of programming with indexed types: binary search trees

MP3

Using indexed types, we can restrict the form of legal values in some datatype.  A nice example is binary search trees, where we can statically enforce the binary search tree property using an indexed type bst l u, where l is a lower bound and u an upper bound on the data stored in the tree.

This podcast uses Buzzsprout for stats. What this means Episodes play from the podcast's own servers, unmodified. Not affiliated with Podbay.