score:15

Accepted answer

the shortest is probably

(x ++ y).reduceleftoption(f)

which works because of an implicit conversion from option to iterable which happens to have a method that does exactly what you need.


Related Query

More Query from same tag