1
1
Fork 0
This commit is contained in:
Svetlana Isakova 2019-10-17 11:18:03 +02:00
parent 1d82b7faa1
commit 650ecdf9cc
1 changed files with 1 additions and 1 deletions

View File

@ -8,4 +8,4 @@ Note the generic types `R?` (in `(Int, T) -> R?`) and `List<R>`. `R?` means the
lambda's return type is nullable. `mapIndexNotNull()` returns a list of
non-nullable elements, so the function return type is `List<R>`. To express
that `R` is a non-nullable type, we specify the constraint on a generic type
parameter `R : Any`. Type constraints will be covered in [Generics].
parameter `R : Any`. Type constraints will be covered in [More about Generics].