Please enable JavaScript.
Coggle requires JavaScript to display documents.
Scala Applied (Basics (Type (Sequences (List (Nil (Nil.::(1).::(2) (List(2…
Scala Applied
Basics
-
-
Type
-
-
-
-
-
Maps
-
val m1 = mutable.Map ('a' -> 1,...)
for ((key,value) <- m1) {...}
Method & Function
def
Return Type
def add(x: Int, y : Int): Int = x + y
-
-
extension
"Hello" -> 88
(String,Int) = (Hello,88)
-
-
-
-
-
-
-
-
Classes
-
-
-
-
Preconditions
require(input_1 !=0 , '"Zero denominator")
-
-
-
-
Auxiliary constructors
def this(i : int) = this(i , 1)
-
-
-
-
-
Functions
-
Literals
-
val multiplyfunction : (Int,Int) => Int = (a,b) => a * b
-
-
-
-
-
-
-
-
-
-
-