NonEmptyIterable Constructor for Arrays in Option Context
Is there a NonEmptyIterable constructor?
EG: like
Or something like that?
EG: like
Array.nonEmpty([]) === Option.none() & Array.nonEmpty([1,2,3]) === Option.some([1,2,3]) :: [number, ...number[]]Or something like that?
