Filter a list to certain elements, apply a function to those elements, and return the initial list with the changed elements.
1 | filtermap(xs, filter_f, map_f)
|
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.