An array that is guaranteed to have at least one element

Static variables

staticread onlyhead:A

staticread onlylength:Int

staticread onlytail:Array<A>

Static methods

staticarray1With<A>(head:A, tail:Array<A>):Array1<A>

staticasArray1<A>(as:Pair<A, Array<A>>):Array1<A>

staticinlinefirst(this:Pair<A, Array<A>>):A

staticflatMap1<B>(this:Pair<A, Array<A>>, fn:A ‑> Array1<B>):Array1<B>

staticflatten<A>(aas:Array1<Array1<A>>):Array1<A>

staticfrom1<A>(fst:A, rest:Rest<A>):Array1<A>

staticiterator(this:Pair<A, Array<A>>):Iterator<A>

staticlast(this:Pair<A, Array<A>>):A

staticmap1<B>(this:Pair<A, Array<A>>, fn:A ‑> B):Array1<B>

@:tostaticinlinetoArray(this:Pair<A, Array<A>>):Array<A>

@:tostatictoIterable(this:Pair<A, Array<A>>):SizedIterable<A>

@:tostatictoIterable1(this:Pair<A, Array<A>>):Iterable1<A>