scanr package:numeric-prelude

scanr is the right-to-left dual of scanl. Note that
head (scanr f z xs) == foldr f z xs.
scanr1 is a variant of scanr that has no starting value argument.