Can someone explain why should I use Scalaz's NonEmptyList
over Scala's List
?
In a immutable application it does not make much sense to create an empty List
- So should I always use
NonEmptyList
in an immutable application ? - Why else would I use scalaz's
NonEmptyList
over scala'sList
other than the obvious reason that it guarantee at least one element in the list ?