You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an implementation vehicle, not a user-facing type
Filed in 2021 alongside #4 and #5. Worth reconsidering: a Tree exposed as
public API is rarely what a user of a functional library reaches for — they reach
for a Map or a Set, and the tree is how those are built.
Keep it, but redefine it as a user-facing ordered structure with a stated
purpose — ordered iteration, range queries, min/max — which a HAMT-based Map
would not provide.
Whichever way, this should be settled before #5 starts, not after.
This is an implementation vehicle, not a user-facing type
Filed in 2021 alongside #4 and #5. Worth reconsidering: a
Treeexposed aspublic API is rarely what a user of a functional library reaches for — they reach
for a
Mapor aSet, and the tree is how those are built.Two ways forward:
(rather than a HAMT), the tree exists as an unexported implementation detail.
purpose — ordered iteration, range queries, min/max — which a HAMT-based
Mapwould not provide.
Whichever way, this should be settled before #5 starts, not after.