foldr1 package:text-short

Reduces the characters of the ShortText with the binary operator.
>>> foldr1 max "abcdcba"
'd'
>>> foldr1 const "abcd"
'a'
>>> foldr1 (flip const) "abcd"
'd'
Note: Will throw an error exception if index is out of bounds.