Re:Programming languages should have a tree traversal primitive
by packetlost on Tuesday April 29, 2025 @11:46AM
(#43834234)
CBOR objects, to be specific ;)
There are a lot of ways you could avoid the recursion, but that's a particularly nice way!
(this is for iterating over nested JSON-like objects, which are just weird trees)