without multimethod
Methods
- without(e:Eachable1, without_elt:Any) Source: stdlib.ngs:1699
Filter out all occurrences of specific value Parameters
e items to filter without_elt The value to filter out Returns
ArrExample
[1,2,3,2].without(2) # [1,3]
- without(e:Eachable2, without_k:Any) Source: stdlib.ngs:2547
Filter out specific key Parameters
e Source without_k The key to filter out Example
{'a': 1, 'b': 2, 'c': 3}.without('a') # {'b': 2, 'c': 3}
- without(e:Eachable2, without_k:Any, without_v:Any) Source: stdlib.ngs:2557
Filter out specific key-value pair Parameters
e Source without_k The key to filter out without_v The value to filter out Example
{'a': 1, 'b': 2, 'c': 3}.without('a', 1).without('b', 22) # {'b': 2, 'c': 3}
- without(s:Str, r:RegExp) Source: stdlib.ngs:5554
Get string with all occurrences of r removed Returns
StrExample
"x10ab20c30y".without(/[0-9]+/) # "xabcy"
- without(ds:ArrLike, without_elt:Any) Source: autoload/DelimStr.ngs:29
Get new DelimStr without the given element Example
DelimStr("/bin:/usr/bin:/usr/local/bin").without("/usr/bin").Str() # "/bin:/usr/local/bin"