score:1

Accepted answer
case class FooWrapper(id:Long)(val foo:Foo)

def wrap(foo:Foo) = new FooWrapper(foo.id)(foo)

val result = s1.map(wrap).diff(s2.map(wrap)).map(_.foo)

Related Query

More Query from same tag