from List Unsafe
Deprecated
Use toNonEmptyListOrNull instead
Replace with
import import arrow.core.toNonEmptyListOrNull
Content copied to clipboard
l.toNonEmptyListOrNull() ?: throw IndexOutOfBoundsException("Empty list doesn't contain element at index 0.")Content copied to clipboard