Description Usage Arguments Value
See detect. This function calls the predicate .p
on the
values of dict
, and returns the first key for which the predicate is TRUE
.
1 | detect_key(dict, .p, ..., .right = FALSE)
|
dict |
a dictionary |
.p |
a single predicate function (see detect), which is passed the values of dict |
... |
additional parameters passed to |
.right |
whether to start the search from the beginning or end of the dictionary |
the first match for which the predicate is TRUE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.