scroll-list: This package provides functions for relocate an item within a list.

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

Please see the README on GitHub at https://github.com/fesanmar/scroll-list#readme


[Skip to Readme]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 1.0.0.0, 1.0.0.1, 1.1.0.0
Change log ChangeLog.md
Dependencies base (>=4.7 && <5) [details]
License BSD-3-Clause
Copyright 2021 Felipe Santa-Cruz
Author Felipe Santa-Cruz
Maintainer fesanmar@gmail.com
Category List
Home page https://github.com/fesanmar/scroll-list#readme
Bug tracker https://github.com/fesanmar/scroll-list/issues
Source repo head: git clone https://github.com/fesanmar/scroll-list
Uploaded by fesanmar at 2021-03-26T19:54:18Z
Distributions
Downloads 439 total (10 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2021-03-26 [all 1 reports]

Readme for scroll-list-1.0.0.0

[back to package description]

scroll-list

Build Status

Haskell package that provides functions for relocate an item within a list.

Usage

Add scroll-list to your package.yml and import Data.List.Scroll module.

Some examples are given below:

  >>> up 2 3 ["one", "two", "three"]
  ["three", "one", "two"]

  >>> up 4 1 ["one", "two", "three"]
  ["one", "two", "three"]

  >>> up 2 3 ["one", "two", "three"]
  ["three", "one", "two"]

  >>> down 0 1 ["one", "two", "three"]
  ["two", "one", "three"]

  >>> up 4 1 ["one", "two", "three"]
  ["one", "two", "three"]

  >>> down 0 4 ["one", "two", "three"]
  ["two", "three", "one"]