Christopher Hübner
02/05/2024, 2:43 PMYoussef Shoaib [MOD]
02/05/2024, 2:44 PMfun interfaces
make a lot more sense, and will surely look nicer as a typeKlitos Kyriacou
02/05/2024, 2:56 PMYoussef Shoaib [MOD]
02/05/2024, 2:58 PMChristopher Hübner
02/05/2024, 3:01 PMval f : (Int, Int, Int) -> Int = { x: Int, mult: Int, inc: Int -> mult*x+inc }
Youssef Shoaib [MOD]
02/05/2024, 3:02 PMfun
syntax while nested:
fun f(x: Int, mult:Int, inc:Int) = mult * x + inc