Open
Description
The reFoldl
interface is nice when you're happy with its "zero or more" semantics. If that's not cool with you, things get a bit ugly. Perhaps most importantly, "one or more" is a bit awkward to handle directly, and seems practically important. For example, a natural number is easily read by folding over one or more digits, but folding over zero digits will match everywhere you don't want.