Safe Haskell | Safe-Inferred |
---|---|

Language | Haskell2010 |

# Documentation

spanLeft ∷ ∀ x a b. (x → Either a b) → [x] → ([a], Maybe (b, [x])) Source #

The returned `b`

is the first in the list.

INVARIANT The output data is a segmentation of the given list.

Safe Haskell | Safe-Inferred |
---|---|

Language | Haskell2010 |

spanLeft ∷ ∀ x a b. (x → Either a b) → [x] → ([a], Maybe (b, [x])) Source #

The returned `b`

is the first in the list.

INVARIANT The output data is a segmentation of the given list.