Functional fever is driving me crazy. I have been trying to write/convert every piece of code to a functional style. For the last couple of weeks, I have been writing tons of code in Scala using pattern matching. In a […]
Continuing with the functional style of coding in Scala, let’s implement the guessing game using Lazy Stream collections in Scala. Streams in Scala are lazily evaluated collections. The Stream collection is appended with the values as you go on and […]
I went hiking on the Rocky mountains, Colarado with Venkat Subramaniam, author of Programming Scala. More than the hike, the numerous technical discussions we had during the hike, were more enjoyable. After we came back we decided to give the […]
A Hangman game is usually played by people who enjoy the vocabulary. You have to play by guessing a word by choosing the letters one by one. For every wrong attempt a picture of a man hanging is drawn step […]
Operators like +, – , * and so on are actually not operators in traditional sense in Scala language. They all are methods. :). Scala language provides a relaxed syntax when it comes to method invocations. The dot (.) and […]