- multimethod
Methods
- -(a:Real, b:Real)
Subtraction
- -(a:Int, b:Int)
Subtraction
- -(a:Set, b:Set) Source: stdlib.ngs:2215
Set difference Returns
Set
- -(a:Arr, b:Arr) Source: stdlib.ngs:3117
Filter out all values in a that are also in b Returns
ArrExample
[1,2,3] - [5,6,1] # [2,3]
- -(s:Str, pfx:Pfx) Source: stdlib.ngs:7491
Return string without the prefix. Throws InvalidArgument if pfx is MustPfx but s does not start with it. Parameters
s original string pfx prefix to get rid of Returns
s without pfxExample
"abcde" - Pfx("ab") # "cde" "abcde" - Pfx("xy") # InvalidArgument exception "abcde" - MaybePfx("xy") # "abcde"
- -(s:Str, sfx:Sfx) Source: stdlib.ngs:7509
Return string without the suffix. Throws InvalidArgument if pfx is MustSfx but s does not end with it. Parameters
s original string sfx suffix to get rid of Returns
s without pfxExample
"abcde" - Sfx("de") # "abc" "abcde" - Sfx("xy") # InvalidArgument exception "abcde" - MaybeSfx("xy") # "abcde"
- -(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, r:RegExp) Source: stdlib.ngs:7760
Returns the string with one occurrence of regexp cut out of it. Throws InvalidArgument if s does not contain r. Returns
StrExample
"abc01def23" - /[0-9]+/ # "abcdef23"
- -(d1:Duration, d2:Duration) Source: stdlib.ngs:8284
Undocumented
- -(a:Int, b:Real) Source: stdlib.ngs:8834
Undocumented
- -(a:Real, b:Int) Source: stdlib.ngs:8835
Undocumented