Fix where multiline expression breaks

The scala console chokes on the first form, but if you line break on the
first half of an anonymous function, it seems to know that there's more
coming.
Optimize an expression by replacing a call to filter with withFilter

We optimize this example a bit by using a withFilter call instead of filter.
This would avoid the creation of an intermediate data structure for male
persons.