[][src]Module parsley::proc_utils

Utilities for writing LISP procedures in Rust.

Reduce code duplication for type/arity checking and value packaging.

Functions

make_binary_expr
make_binary_numeric

Make a procedure that takes two numeric arguments.

make_fold_from0_numeric

Make a variadic procedure that takes a list of numeric arguments, reserves the value of the first element as the initial accumulator, then folds the rest of the list into a number.

make_fold_numeric

Make a variadic procedure that takes a list of numeric arguments and folds the whole list.

make_ternary_expr
make_unary_expr
make_unary_numeric

Make a procedure that takes one numeric argument.