scanr -containers +text

scanr :: (Char -> Char -> Char) -> Char -> Text -> Text
text Data.Text, text Data.Text.Lazy
O(n) scanr is the right-to-left dual of scanl. Performs replacement on invalid scalar values. > scanr f v == reverse . scanl (flip f) v . reverse
scanr1 :: (Char -> Char -> Char) -> Text -> Text
text Data.Text.Lazy
O(n) scanr1 is a variant of scanr that has no starting value argument. Performs replacement on invalid scalar values.
scanr1 :: (Char -> Char -> Char) -> Text -> Text
text Data.Text
O(n) scanr1 is a variant of scanr that has no starting value argument. Subject to fusion. Performs replacement on invalid scalar values.