I need the duplicates to be removed from a List. I have created the code below, but it throws an error. What am I missing here?

```
object RemDupArray {
  def duprmv(lst: List[Int]): List[Int] = { return lst.removeDuplicates }
  def main(args: Array[String]) {
    var xs = List(6, 2, 8, 5, 1, 1, 1)    
    println(xs)
    println(duprmv(xs))
  }
}

```