Description Usage Arguments Value
Like map_if but with the option to specify a value for false cases.
1 | map_ifelse(.x, .p, .f, .e, ...)
|
.x |
a list |
.p |
a list of logicals or predicate function to evaluate on list |
.f |
a function |
.e |
a value to use in results for false predicates. |
... |
This applied to all elements: if(.p) .f(.x) else .e
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.