https://kotlinlang.org logo
#language-proposals
Title
# language-proposals
i

ilya.gorbunov

07/24/2017, 4:32 PM
In Ceylon it's possible to distinguish iterables that can produce no values
Iterable<X,Null>
and ones that produce at least one value
Iterable<X,Nothing>
. Second type argument specifies the type of value returned in case of empty collection. Nevertheless all Ceylon collections are derived from the former one.