NonEmptyList-0.0.3: A list with a length of at least one.

Data.List.ZipNonEmpty

Contents

Description

A wrapper of NonEmpty that has a zip-like Applicative instance.

Synopsis

Documentation

data ZipNonEmpty a Source

A wrapper of NonEmpty that has a zip-like Applicative instance.

Accessors

ne :: ZipNonEmpty a -> NonEmpty aSource

Unwraps a zip-like non-empty list.

zipNe :: NonEmpty a -> ZipNonEmpty aSource

Wraps a non-empty list.

Combinators

usingNe :: (NonEmpty a -> NonEmpty b) -> ZipNonEmpty a -> ZipNonEmpty bSource

Runs a function for non-empty lists on zip-like non-empty lists.

usingZne :: (ZipNonEmpty a -> ZipNonEmpty b) -> NonEmpty a -> NonEmpty bSource

Runs a function for zip-like non-empty lists on non-empty lists.