reject multimethod

Methods

reject(something:Eachable1, pattern:Any=method) Source: stdlib.ngs:1635
Filter something to an Arr (array) of values matching the pattern

Parameters

somethingobject of any type that has each(something, callback) implemented
patternDecision function to be called with each item as first argument. When item matches the pattern, the item will not appear in the resulting array

Returns

Arr

Example

(1...10).reject(F(num) num % 2 == 0)  # Gives [1,3,5,7,9]
(1...10).reject(X<5)  # Gives [5,6,7,8,9,10]
reject(h:Hash, predicate:Fun) Source: stdlib.ngs:3838
h.filter(not + predicate)
reject(i:Iter, pattern:Any)
EXPERIMENTAL! Do not use!