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
valx:List[Int] =List.fill(n)(0)
Chain.fromSeq(x).toList // takes O(1)Chain.fromSeq(x)
.map(identity) // takes O(n). its not a problem.
.toList // takes O(n)!! I think it could be O(1).
The text was updated successfully, but these errors were encountered:
Current implementation of Chain.map is
Why it isn't implemented like this?
I think the problem is:
The text was updated successfully, but these errors were encountered: