score:2

Accepted answer

because string is essentially seq[char] and toset is:

def toset[b >: char]: set[b] 

you probably wanted:

map(x => (x.split("\t")(1), set(x.split("\t")(2)))

Related Query

More Query from same tag