I'm going to do my best to parrot things I picked up from the scala course... What you've done here by declaring functions with {}
works but I don't think it is the intended syntax. Odersky presented it like this:
()
is how you call a function, ie they wrap parameters just like you would expect. If one parameter is a function literal then you get the a form like this:
val nums = List(0,1,0) //> nums : List[Int] = List(0, 1, 0)
nums.map((x) => {x.toString}) //> res0: List[String] = List(0, 1, 0)