Is there a method to do the following without doing both methods: find and map?
find
map
val l = 0 to 3 l.find(_ * 33 % 2 == 0).map(_ * 33) //
This can do it, but it would be easier if you tell what you're really trying to achieve:
l.flatMap(n => if (n * 33 % 2 == 0) Some(n * 33) else None).headOption