Development notes

Thoughts, notes and ideas about development

Scala expressions and definitions cheatsheet

Intro This is a cheatsheet of Scala expressions and definitions from Coursera online course Functional Programming Principles in Scala What is Expression Expression is any bit of Scala code that yields a result. In other words expression evaluates to a result or results in a value Categories of expressions An identifier such as x, isValid A literal, like 0, 2, abc A function application, like sqrt(x) An operator application, like -x, x+y A selection, like math. Continue reading