ndmitchell / extra

Extra Haskell functions
Other
94 stars 37 forks source link

takeEnd, dropEnd, splitAtEnd: return immediately if i<=0 #73

Closed zliu41 closed 3 years ago

zliu41 commented 3 years ago

Currently they take linear time even if i <= 0.

ndmitchell commented 3 years ago

Thanks!