by 7373737373 · 6y ago · 0 comments
The resulting grid can be factored around set, bag, list and binary tree, with empty/non-empty variants.
Then there is interaction of the structures with binary operators on the data elements themselves, giving a nice analysis of map, filter, fold (reduce) in functional programming.
A.Bunkenburg, The Boom Hierarchy
http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.49....
There is a rich literature if you chase the references back and forth, starting from Bird-Meertens Formalism (Squiggol), Hoogendijk, through Backhouse and Malcolm, to Meijer and McBride.
For example, I can see the use of commutativity (ab = ba) and anticommutativity (ab = -ba), but I'm not sure what I'd do with the negation of commutativity (ab ≠ ba).
1L * A = A = A * 1R