This was posted in the wrong channel so going to ask it here. What is the method to make optional NonEmptyArray from the Array? Also this seems like a fairly common operation and I wonder if it would be worth it to add to Array? Something like
Array.asNonEmpty([1,2,3]) would return an Option.some(NonEmptyArray)