is_pairlist {rlang} | R Documentation |
Is object a node or pairlist?
Description
-
is_pairlist()
checks thatx
has typepairlist
. -
is_node()
checks thatx
has typepairlist
orlanguage
. It tests whetherx
is a node that has a CAR and a CDR, including callable nodes (language objects). -
is_node_list()
checks thatx
has typepairlist
orNULL
.NULL
is the empty node list.
Usage
is_pairlist(x)
is_node(x)
is_node_list(x)
Arguments
x |
Object to test. |
Life cycle
These functions are experimental. We are still figuring out a good naming convention to refer to the different lisp-like lists in R.
See Also
is_call()
tests for language nodes.
[Package rlang version 1.1.3 Index]