tree-of-maps
Goals:
Explore using recurive Map
structure to model paths. This could be useful for multi-argument memoization,
where each argument maps to a "layer" of the recursive map:
;
Explore if we can make Map
play the same role as object/interface types in typescript, which is to
say, different types per key in the map.
; // the RecordMap type (along with depth) determines what key paths can be set// to what values.; // ok:recordMap.set, ; // error: { isCow: true} is not blockrecordMap.set, ;