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
I would imagine it's to preserve the order since foldl will reorder it (and foldl is being used because it makes the traversal stack safe), although maybe cons could be used instead to avoid the double pass. I'm not sure if there should be a preference for it to generally be cons or snoc constructed, it probably depends on the operations being run on it.
The
traverse
implementation of CatQueue iterates through every element twice.Is this intended?
purescript-catenable-lists/src/Data/CatQueue.purs
Lines 166 to 168 in 09abe1f
The text was updated successfully, but these errors were encountered: