Skip to main content

count_args

Function count_args 

Source
pub fn count_args<const N: usize>(
    lisp: &Lisp<N>,
    args: ArenaIndex,
) -> ArenaResult<usize>
Expand description

Count the number of arguments in a list.

Returns an error if the argument is not a proper list. Note: Uses InvalidIndex for type errors (see FromLisp impls for rationale).