filter +text

filter :: (Char -> Bool) -> Text -> Text
text Data.Text, text Data.Text.Lazy
O(n) filter, applied to a predicate and a Text, returns a Text containing those characters that satisfy the predicate.