background preloader

Scala

Facebook Twitter

Getting Started with Spring Data – MongoDB in Scala. By Amir Moulavi - Java I used MongoDB for a project in 2010 and I had great experience with it.

Getting Started with Spring Data – MongoDB in Scala

Unfortunately I didn’t get the chance to work with this agile and scalable document-oriented database again until now.

Libraries

DeveloperWorks : Java Technology : Technical library. Scala. Welcome back to another episode of functional Scala!

Scala

As said some time before, we’ve by far not reached the end when it comes to all those basic concepts of functional programming. One of the most powerful ideas we’ve discovered so far, was that of so called higher order functions. Since functions can be treated as values (like Numbers or Strings), we can pass them as ordinary arguments to some other functions.

You may remember our function filter, which not only takes a list of elements to be filtered, but also a function (a so called predicate function, resulting into a boolean value) which decides for every list element to be in the filtered list or not. In this episode, we’ll see that we’re not only restricted to accept another function as an argument but could also come up with some sensible functions which may return another function as their result.