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 […]
Scala provides a concept called partially applied functions that spares you from writing several lines of code. Say, you have a function f that accepts 2 arguments. While invoking f you may have to pass both the arguments. In Scala […]