SquirclesIO/elm-utils/1.0.0

Formerly PerformanceIMMO/elm-utils. Search finds this package by either name.

Perfimmo.Collection.NonEmptyList

NonEmptyList

type alias NEL a =
Nonempty a

NEL

nel : a -> List a -> Nonempty a

nel

repeat : Int -> a -> NEL a

repeat

updateAt : Int -> (a -> a) -> Nonempty a -> Nonempty a

updateAt

decodeNEL : Decoder a -> Decoder (Nonempty a)

decodeNEL

appendList : NEL a -> List a -> NEL a

appendList

prependList : List a -> NEL a -> NEL a

prependList