by nailuj · 8y ago · 0 comments
The data structure he describes in the last article is actually well known in Prolog as difference lists (except that you can't do higher order logic programming with them). Converting between terms and lists is also well supported by Prolog. Granted, the syntax is not as nice as using S-expressions with special sugar for terms.
As for lists of lists, the most recent article uses them for an in-memory optimized representation:
http://natecull.org/wordpress/2018/08/16/dataspace-10-an-arr...