What is Nostr?
chris martens (they/them) /
npub15pe…whd2
2024-08-06 16:51:29

chris martens (they/them) on Nostr: you can index into a list with a natural number (sequence of 1s). you can index into ...

you can index into a list with a natural number (sequence of 1s).

you can index into a tree with a binary number (sequence of left/right choices).

you can index into a grid/2D array with a pair of numbers.

what's the general pattern this follows? one-holed contexts/type derivatives/zippers rely on this structure implicitly, but i haven't seen these indexing structures documented independently.
Author Public Key
npub15pejcagya70mssj8a5dp6htdkdw93h4wzk952favkktwh40sqs3scmwhd2