Methods

-ΒΆ

-(s:Str, sfx:Sfx)

Return string without the suffix. Throws MatchFail if pfx is MustSfx but s does not end with it.
Source: stdlib.ngs:3641

s

original string

sfx

suffix to get rid of

Returns

s without pfx

Example

"abcde" - Sfx("de")  # "abc"
"abcde" - Sfx("xy")  # MatchFail exception
"abcde" - MaybeSfx("xy")  # "abcde"