without multimethod

Methods

without(e:Eachable1, without_elt:Any)deprecated Source: stdlib.ngs:3109
Filter out all occurrences of specific value Deprecated. Use reject().

Parameters

eitems to filter
without_eltThe value to filter out

Returns

Arr

Example

[1,2,3,2].without(2)  # [1,3]
without(e:Eachable2, without_k:Any)deprecated Source: stdlib.ngs:4054
Filter out specific key. Deprecated. Use rejectk() or fields(Not(...)).

Parameters

eSource
without_kThe 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)deprecated Source: stdlib.ngs:4066
Filter out specific key-value pair. Deprecated. Use reject().

Parameters

eSource
without_kThe key to filter out
without_vThe 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:7777
Get string with all occurrences of r removed

Returns

Str

Example

"x10ab20c30y".without(/[0-9]+/)  # "xabcy"
without(ds:ArrLike, without_elt:Any)
Get new DelimStr without the given element

Example

DelimStr("/bin:/usr/bin:/usr/local/bin").without("/usr/bin").Str()  # "/bin:/usr/local/bin"