Types
Prefix subsequence of a sequence
- MaybePfx
-
Prefix that might or might not be present for ~ matching to succeed
- MustPfx
-
Prefix that must be present for ~ matching to succeed
Constructors
Pfx(val:Any)
Convenience method for creating MustPfx
Methods
-(s:Str, pfx:Pfx)
Return string without the prefix. Throws MatchFail if pfx is MustPfx but s does not start with it.
~(s:Str, pfx:Pfx)
Check whether s starts with pfx.