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
Where did breakEnd go? I definitely remember seeing breakEnd, so I checked. It was added ten years ago (!) in 3a86c2d. 2009 was when "text" was released, which means the function should be almost as old as the project itself.
So it must have been removed later. Does anyone know what happened? breakEnd/spanEnd is really handy, and it's such a bummer that I have to roll something (probably half-baked and less performant) on my own now. :(
maybe the reason is the possible confusion between which is drop and which is take, because logically it would be reversed compared with span, but documentation would comment on that:
spanEnd p t = (dropWhileEnd p t, takeWhileEnd p t)
span p t = (takeWhile p t, dropWhile p t)
there is a
breakandspanbut nobreakEndorspanEndto mirror them in lieu oftakeWhile/takeWhileEndanddropWhile/dropWhileEnd.