@hackage / first-and-last

First and Last generalized to return up to n values

Latest0.1.0.1

About

Metadata

  • Last updated , by andrus
  • License BSD-3-Clause
  • Maintained by: markandrusroberts@gmail.com

  • Lottery factor: 0

Links

Installation

Readme

This library provides data types First' n and Last' n generalizing First and Last from Data.Monoid to return up to n values.

>>>
>>>

It also provides API-compatible type synonyms First and Last as well as functions getFirst and getLast, allowing you to use it as a drop-in replacement.