hnode_setters: Get and set elements of an hnode

Description Usage Arguments Details

Description

The 'h_*' functions return the object after evaluating it within the hnode environment. For example,

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
h_fun(h)

h_inode(h)

h_val(h)

h_pass(h)

h_fail(h)

h_effect(h)

h_cacher(h)

h_fun_ne(h)

h_inode_ne(h)

h_val_ne(h)

h_pass_ne(h)

h_fail_ne(h)

h_effect_ne(h)

h_cacher_ne(h)

h_args(h)

h_delete(h)

h_inode(h) <- value

h_fun(h) <- value

h_val(h) <- value

h_pass(h) <- value

h_fail(h) <- value

h_effect(h) <- value

h_cacher(h) <- value

h_fail(h) <- value

h_args(h) <- value

h_delete(h) <- value

Arguments

h

a function of the 'hnode' class

value

right hand value for assignment

Details

“' h_fun <- function(h) eval(formals(h)$.fun, environment(h)) “'

The 'h_*_ne' functions return the object directly (they will normally be expressions). The ‘ne' stands for ’no evaluation'.

“' h_fun_ne <- function(h) formals(h)$.fun “'

The 'h_*_ne' family is mostly useless. I keep it around for testing.


arendsee/pied documentation built on May 10, 2019, 1:20 p.m.