mapFilterSP :: (a -> Maybe b) -> SP a b filterLeftSP :: SP (Either a b) a filterRightSP :: SP (Either a b) b filterJustSP :: SP (Maybe a) a
mapFilterSP
, the
function is supplied as an argument. Otherwise, the function is built-in.
filterLeftSP = mapFilterSP stripLeft filterRightSP = mapFilterSP stripRight filterJustSP = mapFilterSP id