Ifx type
Direct parent types
- SubSeq
Undocumented Direct subtypes: 3
Direct children types
- MaybeIfx
Infix that might or might not be present for (-) to succeed
- MustIfx
Infix that must be present for ~ matching to succeed
Constructors
- Ifx(val:Any) Source: stdlib.ngs:7475
Convenience method for creating MustIfx Returns
MustIfx
Methods
- -(s:Str, ifx:Ifx) Source: stdlib.ngs:7526
Return string without the infix. Throws InvalidArgument if ifx is MustIfx but s does not contain it. Parameters
s original string ifx infix to get rid of Returns
s without ifxExample
"abcde" - Ifx("bc") # "ade" "abcde" - Ifx("xy") # InvalidArgument exception "abcde" - MaybeIfx("xy") # "abcde"
- ~(s:Str, i:Ifx) Source: stdlib.ngs:7550
Check whether s contains i. Same as s ~ i.val Returns
MatchResult