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