Subscribe to:
Post Comments (Atom)
-
Distinct - It creates a copy of a given collection without duplicated elements DistinctBy - It also creates a copy given collection by kee...
-
Sometimes it is necessary to express that the type of an object is a subtype of several other types. In Scala, this can be expressed with t...
-
Discover functionality in Scala libraries. URL: http://scala-search.org/
-
Java is impatient, So it does things eagerly, Doing lazy things with Java is not straightforward! Let's first understand What do we m...
-
apply and unapply are the special methods in Scala. The apply method works like a constructor. Unapply uses to extract the object. The ...
-
We generally have dev server and production Server. Usually, Dev server has less data(test data). While working on a Complex application, S...
-
In Scala, objects are a singleton. Scala doesn’t have static class members (variables or methods). Instead, it has singleton objects. Sim...
-
Self type is a way to tell trait that it depends on another trait. We can achieve dependency injection of trait using self type trait Tar...
-
MongoDB is NoSQL Open Source database. It's document based database. Let's take an example to store cricket bat object: Cricket...
-
Count defines how many elements in a given collection satisfy the input predicate. def countExample(): Unit = { def isEven = (input: In...
No comments:
Post a Comment