Are you using Scala Collection efficiently?
Are you using Scala Collection efficiently?
In this blog, We will be going to explore how we can use scala collections efficiently .
Though, we are taking care of immutability but still something more can be done to make your code more readable and faster.
Creating empty collections explicitly:
List[T]() //before
List.empty[T] //after
There are some immutable collection classes provide singleton “empty” implementations, however not all…
View On WordPress










