filtermap: Filter a list to certain elements, apply a function to those...

Description Usage Arguments

Description

Filter a list to certain elements, apply a function to those elements, and return the initial list with the changed elements.

Usage

1
filtermap(xs, filter_f, map_f)

Arguments

xs

list. The list to iterate over.

filter_f

function. The predicate function to filter the list.

map_f

function. The function to apply to each element of the filter.


peterhurford/funtools documentation built on May 25, 2019, 1:50 a.m.