helper: helper functions for walkast

Description Usage Arguments Examples

Description

helper functions for walkast

Usage

1
2
3
4
5
6
7
8
9

Arguments

quote_bin

boolean: showing quoted binary operator or not

Examples

1
2
3
4
5
6
walk_ast(quote(1 + 2 * 3), to_list())
walk_ast(list(quote(`+`), 1, list(quote(`*`), 2, 3)), to_call())
walk_ast(quote(1 + 2 * 3), to_list() %then% to_call())
walk_ast(quote(1 + 2 * 3), show_lisp())
walk_ast(quote(1 + 2 * 3), show_lisp(quote_bin = TRUE))
walk_ast(quote(1 + 2 * 3), show_r())

TobCap/walkast documentation built on May 9, 2019, 4:51 p.m.