grouped-list

Grouped lists. Equal consecutive elements are grouped. https://github.com/Daniel-Diaz/grouped-list/blob/master/README.md

LTS Haskell 9.17:0.2.1.3
Stackage Nightly 2017-12-10:0.2.1.3
Latest on Hackage:0.2.1.3
BSD3 licensed by Daniel Díaz
Maintained by dhelta.diaz@gmail.com

Module documentation for 0.2.1.3

grouped-list

Welcome to the grouped-list repository.

We are at an early stage of development, but contributions are more than welcome. If you are interested, feel free to submit a pull request.

What is this about?

This library defines the type of grouped lists, Grouped. Values of this type are lists with a finite number of elements. The only special feature is that consecutive elements that are equal on the list are internally represented as a single element annotated with the number of repetitions. Therefore, operations on lists that have many consecutive repetitions perform much better, and memory usage is reduced. However, this type is suboptimal for lists that do not have many consecutive repetitions. We are trying to ameliorate this.

Automatic build

Build Status

Changes

0.1.3.0

  • IsList instance to use with the OverloadedLists language extension.

  • Addition of take and drop.

  • Two test suites added, one with example-based tests, and other with property-based tests.

0.1.2.0

  • Addition of adjustM.

0.1.1.0

  • Addition of empty.
Used by 1 package:
comments powered byDisqus