diagrams-lib-1.6: Embedded domain-specific language for declarative graphics
Copyright(c) 2026 diagrams-lib team (see LICENSE)
LicenseBSD-style (see LICENSE)
Maintainerdiagrams-discuss@googlegroups.com
Safe HaskellSafe-Inferred
LanguageHaskell2010

Diagrams.CubicSpline.NonSingleton

Description

A simple type representing lists with at least 2 elements, needed as input for the cubic spline solver.

Synopsis

Non-singleton lists

data NonSingleton a where Source #

Lists with at least 2 elements.

Constructors

(:||) :: forall a. a -> NonEmpty a -> NonSingleton a infixr 5 

Instances

Instances details
Functor NonSingleton Source # 
Instance details

Defined in Diagrams.CubicSpline.NonSingleton

Methods

fmap :: (a -> b) -> NonSingleton a -> NonSingleton b #

(<$) :: a -> NonSingleton b -> NonSingleton a #

zipWith :: (a -> b -> c) -> NonSingleton a -> NonSingleton b -> NonSingleton c Source #