about summary refs log tree commit diff stats
path: root/html/003trace.cc.html
Commit message (Expand)AuthorAgeFilesLines
...
* 2175Kartik K. Agaram2015-09-061-13/+2
* 2062Kartik K. Agaram2015-08-231-82/+81
* 1949Kartik K. Agaram2015-08-061-80/+81
* 1925Kartik K. Agaram2015-08-031-2/+10
* 1885Kartik K. Agaram2015-07-291-78/+77
* 1853Kartik K. Agaram2015-07-251-91/+79
* 1818Kartik K. Agaram2015-07-181-2/+5
* 1690Kartik K. Agaram2015-07-011-3/+6
* 1632Kartik K. Agaram2015-06-231-1/+1
* 1631 - update html versionsKartik K. Agaram2015-06-231-5/+8
* 1556Kartik K. Agaram2015-06-121-1/+1
* 1549Kartik K. Agaram2015-06-091-2/+2
* 1517Kartik K. Agaram2015-05-301-10/+9
* 1461 - descriptions/table of contents for the layersKartik K. Agaram2015-05-261-1/+1
* 1459Kartik K. Agaram2015-05-251-204/+98
* 1376 - update github docsKartik K. Agaram2015-05-141-17/+18
* 1291Kartik K. Agaram2015-05-061-1/+1
* 1279 - colorized rendering of the source filesKartik K. Agaram2015-05-061-0/+516
fault-space:address:array:location <- new location:type, 30:literal x:number <- factorial 5:literal $print [result: ], x:number, [ ] ] recipe factorial [ default-space:address:array:location <- new location:type, 30:literal n:number <- next-ingredient { # if n=0 return 1 zero?:boolean <- equal n:number, 0:literal break-unless zero?:boolean reply 1:literal } # return n * factorial(n - 1) x:number <- subtract n:number, 1:literal subresult:number <- factorial x:number result:number <- multiply subresult:number, n:number reply result:number ] # unit test scenario factorial-test [ run [ 1:number <- factorial 5:literal ] memory-should-contain [ 1 <- 120 ] ] ='n14' href='#n14'>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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151