Scala 3, Programming Scala.
long as those calls to ? return an instance of T, meaning the nested sequences are not empty. However, the first time an empty sequence is found, the implementation of ? will call break, immediately terminating the map iteration and returning a None out of the optional block. Here’s what to expect: