scanr -containers -bytestring

scanr :: (a -> b -> b) -> b -> [a] -> [b]
base Prelude, base Data.List
scanr is the right-to-left dual of scanl. Note that > head (scanr f z xs) == foldr f z xs.
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 :: (a -> a -> a) -> [a] -> [a]
base Prelude, base Data.List
scanr1 is a variant of scanr that has no starting value argument.
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.