Is this a thing that exists in some standard library somewhere? takeInclusive p = (\(a, b) -> a ++ [ head b ]) . span p
@peterseibel so you want everything while p is matching and then the next element (which doesn't match p)? Example use?
-
-
@avibryant Trying to find first item > target but that just establishes upper bound which I may later refine using items in generated list.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.