another day, another question about implementing a bqn runtime (i should have some time over xmas break to put in some work).
so, as I understand it, in the reference bqn implementation, environments can be nested. get/1, ge/2, and set/2 work on references to environments/slots in this nested structure. what I think i need to do, is flatten the environments into a key-value structure (the "heap" for lack of a better term), where the key is a unique reference, and the value is the environment itself (array of slots & parent environment reference).