Jak przekształcić zero w None Scala
Nil is an empty Sequence and None is an empty Option. So use .headOption on your Nil variable
val myVal = Nil
println(myVal.headOption)
Perfect Panda