View source: R/50-ordered_sequence-ops.R
| peek_all_key | R Documentation |
Returns all elements whose key equals key.
peek_all_key(x, key)
x |
An |
key |
Query key. |
The returned ordered_sequence can be inspected with as.list().
An ordered_sequence containing all matches; empty on miss.
x <- ordered_sequence("a", "b", "c", keys = c(1, 2, 2))
out <- peek_all_key(x, 2)
as.list(out)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.