HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

ModuleListLike-4.7.8.4Haskell2010

Data.ListLike.Utils

Utilities for Data.ListLike.ListLike and friends. More functions similar to Data.List but not part of the main typeclass.

Written by John Goerzen, jgoerzen@complete.org

Synopsis
  • PackageListLike-4.7.8.4
  • Exports11
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceUtils.hs
valuezip
  1. :: (ListLike full item, ListLike fullb itemb, ListLike result (item, itemb))
  2. => full
  3. -> fullb
  4. -> result

Takes two lists and returns a list of corresponding pairs.

valuezipWith
  1. :: (ListLike full item, ListLike fullb itemb, ListLike result resultitem)
  2. => item -> itemb -> resultitem
  3. -> full
  4. -> fullb
  5. -> result

Takes two lists and combines them with a custom combining function

valuelist :: ListLike full a => b -> (a -> full -> b) -> full -> b

List-like destructor (like Data.Maybe.maybe)