Version: v0.5.0 - Beta.  We welcome contributors & feedback.  THanks!




Keep or remove items in the List.

If the callback returns true, the item is kept in the List. Otherwise, it is removed.

Returns a List of filtered items.

(This example uses the F and R shortcuts for function and return.)

let fnPositive = F (a) { R a > 0 };

[1, -2, 3, -4, 5].filter(fnPositive);
//= [1, 3, 5]

See Also