Count the number of identical objects in List[_]
Let's assume we have a list of objects     case class Cake(id: Int, name: String, expired: Long)  val...
Tags: scala, newbie, 30secondstoread