Loops in Scala: for and while
Explore how to perform iteration in Scala using while loops and the more idiomatic and powerful for-comprehensions.
Read MoreExplore all lessons related to Scala
Explore how to perform iteration in Scala using while loops and the more idiomatic and powerful for-comprehensions.
Read MoreMaster string manipulation in Scala, including s-interpolation, f-interpolation for formatting, and creating multiline strings.
Read MoreLearn how to define functions using def, specify parameter and return types, and understand Scala's powerful type inference.
Read MoreDiscover how almost everything in Scala is an expression that returns a value, starting with the powerful if/else construct.
Read MoreA tour of Scala's core data types like Int, Double, Boolean, String, and Char, and how to write their literal values.
Read MoreLearn the fundamental difference between immutable (val) and mutable (var) variables, and when to use the powerful lazy val.
Read More