View source: R/30-api-flexseq-ends.R
| peek_front | R Documentation |
Returns the first element without modifying the sequence.
peek_front(x)
x |
A |
Returns the payload element without modifying x.
First element, or NULL when x is empty.
x <- flexseq("a", "b", "c")
peek_front(x)
peek_front(flexseq())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.