Tutorial by Examples

You could describe variable affectation in different ways. Typed int a = 1 int a := 1 let int a = 1 int a <- 1 No type a = 1 a := 1 let a = 1 a <- 1
As long as the function name, return statement and parameters are clear, you're fine. def incr n return n + 1 or let incr(n) = n + 1 or function incr (n) return n + 1 are all quite clear, so you may use them. Try not to be ambiguous with a variable affectation

Page 1 of 1