filter
Focuses on those values for which the predicate is true.
See Optional.filter for further description of the caution one should be with this optic.
Focuses on the value only if the predicate is true.
See Optional.filter for further description of the caution one should be with this optic.