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
Hi, I was searching for function that gets things from Dict/Set by prefix (for indexing purposes).
So I found that fold*WithOrder function would be quite handy.
foldlByOrder: (k->Order) -> (k->v->a->a) ->a->Dictkv->afoldlByOrder toOrder fn acc a =case a ofRBEmpty_elm_builtin->
acc
RBNode_elm_builtin _ k v left right ->case toOrder k ofLT->
foldlByOrder toOrder fn acc left
EQ->
foldlByOrder toOrder fn (fn k v (foldlByOrder toOrder fn acc left)) right
GT->
foldlByOrder toOrder fn acc right
The text was updated successfully, but these errors were encountered:
Hi, I was searching for function that gets things from Dict/Set by prefix (for indexing purposes).
So I found that
fold*WithOrder
function would be quite handy.The text was updated successfully, but these errors were encountered: