/ Published in: Scala
Recursively remove duplicate elements from a List
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
object ListUtil { elements } } // example usage: ListUtil.dedupe(List("one", "two", "one")).foreach(println)