View source

abstract thx.Nel<A>(NonEmptyList<A>) from NonEmptyList<A> to NonEmptyList<A>

Available on all platforms

Class Fields

function cons<A>(a:A, nl:NonEmptyList<A>):Nel<A>

function fromArray<A>(arr:Array<A>):Option<Nel<A>>

function nel<A>(hd:A, tl:Array<A>):Nel<A>

function pure<A>(a:A):Nel<A>

function semigroup<A>():Semigroup<Nel<A>>

Instance Fields

function append(nel:NonEmptyList<A>):Nel<A>

function flatMap<B>(f:A -> NonEmptyList<B>):Nel<B>

function map<B>(f:A -> B):Nel<B>

function toArray():Array<A>