split: Combinator library for splitting lists.

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

A collection of various methods for splitting lists into parts, akin to the "split" function found in several mainstream languages. Here is its tale:

Once upon a time the standard Data.List module held no function for splitting a list into parts according to a delimiter. Many a brave lambda-knight strove to add such a function, but their striving was in vain, for Lo, the Supreme Council fell to bickering amongst themselves what was to be the essential nature of the One True Function which could cleave a list in twain (or thrain, or any required number of parts).

And thus came to pass the split package, comprising divers functions for splitting a list asunder, each according to its nature. And the Supreme Council had no longer any grounds for argument, for the favored method of each was contained therein.

To get started, see the Data.List.Split module.


[Skip to Readme]

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1, 0.1.1, 0.1.2, 0.1.2.1, 0.1.2.2, 0.1.2.3, 0.1.3, 0.1.4, 0.1.4.1, 0.1.4.2, 0.1.4.3, 0.2.0.0, 0.2.1.0, 0.2.1.1, 0.2.1.2, 0.2.1.3, 0.2.2, 0.2.3, 0.2.3.1, 0.2.3.2, 0.2.3.3, 0.2.3.4, 0.2.3.5, 0.2.4, 0.2.5
Change log CHANGES
Dependencies base (<4.14) [details]
Tested with ghc ==7.0.4, ghc ==7.2.2, ghc ==7.4.2, ghc ==7.6.3, ghc ==7.8.4, ghc ==7.10.3, ghc ==8.0.2, ghc ==8.2.2, ghc ==8.4.1
License BSD-3-Clause
Copyright (c) Brent Yorgey, Louis Wasserman 2008-2012
Author Brent Yorgey
Maintainer byorgey@gmail.com
Revised Revision 2 made by BrentYorgey at 2019-08-19T17:52:25Z
Category List
Bug tracker https://github.com/byorgey/split/issues
Source repo head: git clone http://github.com/byorgey/split.git
Uploaded by BrentYorgey at 2018-01-24T03:00:30Z
Distributions Arch:0.2.5, Debian:0.2.3.4, Fedora:0.2.3.5, FreeBSD:0.2.2, LTSHaskell:0.2.5, NixOS:0.2.5, Stackage:0.2.5, openSUSE:0.2.5
Reverse Dependencies 538 direct, 7656 indirect [details]
Downloads 236339 total (569 in the last 30 days)
Rating 2.25 (votes: 2) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2018-01-24 [all 1 reports]

Readme for split-0.2.3.3

[back to package description]
Data.List.Split provides a wide range of strategies and a unified
combinator framework for splitting lists with respect to some sort of
delimiter.

------------------------------------------------------------------------

Dependencies:

  There are no dependencies other than the base package.
  Data.List.Split has been tested with versions of GHC from 6.8.3 up
  through 8.0.1.  It is completely Haskell2010 (probably also
  Haskell98) compliant, so it probably builds with other compilers as
  well.

  The Properties.hs file depends on QuickCheck >= 2.4, but you don't
  need it in order to build the library itself, only to run the tests.

Build with Cabal:

    cabal install

Building Haddock documentation (recommended):

    cabal haddock

  Once the documentation has been built, you can access it by 
  pointing your browser to dist/doc/html/split/index.html.

Running the tests:

  cabal configure --enable-tests && cabal build && cabal test