filter.fl: Return values that fulfill a predicate function

Description Usage Arguments Value See Also

Description

A predicate function is one that takes a single argument returns either true or false. filter takes such a function, applies it to a functional list, and keeps those values that return true in the predicate.

Usage

1
2
## S3 method for class 'fl'
filter(ls, fn, ...)

Arguments

ls

A function, with class fl, that operates as a functional list object

fn

A predicate function, as described above

...

Additional arguments to fn

Value

A functional list whose data elements return true in the predicate function.

See Also

remove, Filter


michaelquinn32/lambdaList documentation built on May 22, 2019, 9:52 p.m.