HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

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, …