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
Ah, right, yeah, because it uses uncons, which does xs.slice(1). In fact looking through the code in src/Data/Array.purs I suspect most of the other uses of uncons or uncons' could probably be reworked for better performance.
Looks like
head
isn't O(1), at least on node v4.4.7.I measured with purescript-benchotron as follows:
The text was updated successfully, but these errors were encountered: