2 ms·
Such a structure is called a Zipper, for anyone wanting to look into it further.
by icen 9y ago
Such a structure is called a Zipper, for anyone wanting to look into it further.
- eru 9y agoIn this case it's a Zipper for a list. You can write zippers for other data structures as well (and in fact you can mechanically derive them, even).