3 ms·
Okasaki has a lot about skew binary numbers (and other strange systems) in his "Purely Functionaly Data Structures". Linked lists are basically equivalent to u
by eru 17y ago
Okasaki has a lot about skew binary numbers (and other strange systems) in his "Purely Functionaly Data Structures". Linked lists are basically equivalent to unary. Fibonacci number systems are also useful. You can also use `redundant ternary' and much more.
Even partial differentiation of (algebraic) data structures is a useful operation. It corresponds to looking at data structures with `holes' in them. The functional people call them zippers.