in a scratch file, I tested this proof of concept ...
# getting-started
s
in a scratch file, I tested this proof of concept to double-check the semantics of using
List<E?>
, and I didn’t run into anything odd
Copy code
data class Movie(val id: Int)

class Foo(private val movies: List<Movie?>) {
  fun bar() {
    val movie = movies[0]
    val id = movie?.id
  }
}