I have some code that is producing a Map where the values are Option types, and I really of course want a map containing only the real values.
Map
Option
input.collect{case (k, Some(v)) => (k,v)}