common-suffix
text →
common-suffix() → text
Returns the longest suffix shared by all accumulated strings.
Parameters
This accumulator has no parameters.
Behavior
Empty input returns null. A single string is returned unchanged. Nonempty input with no shared text, including an empty string, returns empty text. Comparison is ordinal and case-sensitive, without Unicode normalization. The result is independent of input order. Null and non-string elements throw InvalidCastException, even after the running result becomes empty.
Examples
{"running", "walking", "talking"} | fold(common-suffix) → "ing"
Kind: Accumulator
Scope: array
Aliases: common-suffix