Scala pitfalls
- Iterators evaluate lazily, which means
iterator.map(x => y)and for-yield evaluate lazily. - Don't make singleton that starts with lower case. "A variable pattern x is a simple identifier which starts with a lower case letter."
- Login to post comments
