list-predicate: Predicates on lists

[ bsd3, library, list ] [ Propose Tags ] [ Report a vulnerability ]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0.0, 0.1.0.1
Change log ChangeLog.md
Dependencies base (>=4.7 && <5) [details]
License BSD-3-Clause
Copyright 2020 Preetham Gujjula
Author Preetham Gujjula
Maintainer pgujjula+list-utilities@protonmail.com
Category List
Home page https://github.com/pgujjula/list-utilities#readme
Bug tracker https://github.com/pgujjula/list-utilities/issues
Source repo head: git clone https://github.com/pgujjula/list-utilities
Uploaded by pgujjula at 2020-05-02T20:28:27Z
Distributions LTSHaskell:0.1.0.1, NixOS:0.1.0.1, Stackage:0.1.0.1
Downloads 858 total (12 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for list-predicate-0.1.0.1

[back to package description]

list-predicate

list-predicate is a library for predicates (True/False queries) on lists.

Features

The following features have been implemented and extensively tested:

  • allEqual, allEqualBy: Whether all the elements of a list are equal
  • sorted, sortedBy: Whether the elements are in sorted order.
  • allUnique, allUniqueBy: Whether the elements are all unique.
  • ascSequential, descSequential: Whether a list of Enums is ascending or descending sequentially (one-by-one)
  • palindrome: Whether the list is a palindrome

Full documentation can be built with Haddock (see instructions below). Once this package is added to Hackage, documentation will be available there as well.

Installation

Build and install with Stack:

git clone https://github.com/pgujjula/list-utilities/list-predicate
cd list-predicate
stack build list-predicate            # build the project
stack haddock list-predicate --open   # build and view documentation
stack test list-predicate             # 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