HORIZON HASKELLDocslts/ghc-9.14.x7a6c33e2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 7a6c33e · 2026-10-12

Modulelinear-base-0.8.1

Data.List.NonEmpty.Linear

Synopsis
valueinit :: NonEmpty a -> [a]

Extract everything except the last element of the stream.

datadata NonEmpty a

Non-empty (and non-strict) list type.

Constructors

  • a :| [a]infixr 5
Instances46Monad, MonadFix, Applicative, Foldable, MonadZip, Foldable1, …