Scala — Command Reference
Scala's most used commands — combines object-oriented and functional programming on the JVM (Spark, Akka). (For reference/educational purposes on this platform; examples should include explanations.)
7 categories · 15 commands
🖥️
Output
println and string interpolation.
println()String interpolation ( s"" )📦
Variables & Types
val, var, and type conversion.
val / var.toInt / .toString🔢
Numbers & Math
Operators and math.
Math operatorsmath.sqrt() / math.pow()✍️
String
Length, casing, search, and splitting.
.length / .toUpperCase.contains() / .replace() / .split()📚
Collection
List and Map.
ListMap🔀
Condition & Loop
if/else, for, and while.
if / elseforwhile🧩
Function
def and lambda.
def (function)Lambda ( => )