Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
val d = s.map(_.toDouble)
val d = s match {
case Some(x) => Some(x.toDouble)
case None => None
}
Array("sdfj","slfsdlkf","dlkfjdlj").map(_.length)
//--> Array[Int] = Array(4, 8, 8)
Some("fdkjdkfj").map(_.length)
//--> Option[Int] = Some(8)
(None: Option[String]).map(_.length)
//--> Option[Int] = None
//Langform
x => x.toDouble
//Kurzform
_.toDouble
//Langform
x => println(x)
//Kurzform
println(_)
//Langform
(x, y) => x min y
//Kurzform (nur möglich bei richtiger Reihenfolge der Variablen)
_ min _