dropWhileEnd package:jsaddle

O(n) dropWhileEnd p t returns the prefix remaining after dropping characters that fail the predicate p from the end of t. Subject to fusion. Examples:
dropWhileEnd (=='.') "foo..." == "foo"