Description
Special takes and drops on lists.
Description
Please see the README on GitHub at https://github.com/pgujjula/list-utilities/tree/master/list-filter#readme.
README.md
list-filter
list-filter is a library for more filters than are available in the standard libraries
Features
list-filter is a new project, but the following features have been implemented and extensively tested:
takeEvery
,dropEvery
: Take or drop every nth elementtakeUntil
,dropUntil
: LiketakeWhile
,dropWhile
, but keep the element that satisfies/falsifies the predicate.
Full documentation can be built with Haddock (see instructions below), and is also available on Hackage.
Installation
Build and install with Stack:
git clone https://github.com/pgujjula/list-utilities
cd list-utilities/list-filter
stack build list-filter # build the project
stack haddock list-filter --open # build and view documentation
stack test # run the test suite
Contact
If you want to report a bug, request a feature, or suggest improvements, feel free to email me at preetham (dot) gujjula (at) protonmail (dot) com!
-- Preetham.