New post - scala List.mapWhile'