@@ -32,6 +32,8 @@ As a note, a `node` struct is not necessary in javascript, so this is an example
32
32
[ import:4-37, lang:"php"] ( code/php/tree_traversal.php )
33
33
{% sample lang="crystal" %}
34
34
[ import:1-5, lang:"crystal"] ( code/crystal/tree-traversal.cr )
35
+ {% sample lang="st" %}
36
+ [ import:1-20, lang:"smalltalk"] ( code/smalltalk/tree_traversal.st )
35
37
{% sample lang="go" %}
36
38
[ import:5-8, lang:"go"] ( code/golang/treetraversal.go )
37
39
{% sample lang="asm-x64" %}
@@ -77,6 +79,8 @@ Because of this, the most straightforward way to traverse the tree might be recu
77
79
[ import:41-49, lang:"php"] ( code/php/tree_traversal.php )
78
80
{% sample lang="crystal" %}
79
81
[ import:7-10, lang:"crystal"] ( code/crystal/tree-traversal.cr )
82
+ {% sample lang="st" %}
83
+ [ import:22-27, lang:"smalltalk"] ( code/smalltalk/tree_traversal.st )
80
84
{% sample lang="go" %}
81
85
[ import:10-15, lang:"go"] ( code/golang/treetraversal.go )
82
86
{% sample lang="asm-x64" %}
@@ -131,6 +135,8 @@ Now, in this case the first element searched through is still the root of the tr
131
135
[ import:51-57, lang:"php"] ( code/php/tree_traversal.php )
132
136
{% sample lang="crystal" %}
133
137
[ import:12-15, lang:"crystal"] ( code/crystal/tree-traversal.cr )
138
+ {% sample lang="st" %}
139
+ [ import:29-34, lang:"smalltalk"] ( code/smalltalk/tree_traversal.st )
134
140
{% sample lang="go" %}
135
141
[ import:17-22, lang:"go"] ( code/golang/treetraversal.go )
136
142
{% sample lang="asm-x64" %}
@@ -180,6 +186,8 @@ In this case, the first node visited is at the bottom of the tree and moves up t
180
186
[ import:59-78, lang:"php"] ( code/php/tree_traversal.php )
181
187
{% sample lang="crystal" %}
182
188
[ import:17-31, lang:"crystal"] ( code/crystal/tree-traversal.cr )
189
+ {% sample lang="st" %}
190
+ [ import:36-49, lang:"smalltalk"] ( code/smalltalk/tree_traversal.st )
183
191
{% sample lang="go" %}
184
192
[ import:24-38, lang:"go"] ( code/golang/treetraversal.go )
185
193
{% sample lang="asm-x64" %}
@@ -238,6 +246,8 @@ In code, it looks like this:
238
246
[ import:80-91, lang:"php"] ( code/php/tree_traversal.php )
239
247
{% sample lang="crystal" %}
240
248
[ import:33-41, lang:"crystal"] ( code/crystal/tree-traversal.cr )
249
+ {% sample lang="st" %}
250
+ [ import:47-58, lang:"smalltalk"] ( code/smalltalk/tree_traversal.st )
241
251
{% sample lang="go" %}
242
252
[ import:40-49, lang:"go"] ( code/golang/treetraversal.go )
243
253
{% sample lang="asm-x64" %}
@@ -289,6 +299,8 @@ And this is exactly what Breadth-First Search (BFS) does! On top of that, it can
289
299
[ import:93-104, lang:"php"] ( code/php/tree_traversal.php )
290
300
{% sample lang="crystal" %}
291
301
[ import:43-51, lang:"crystal"] ( code/crystal/tree-traversal.cr )
302
+ {% sample lang="st" %}
303
+ [ import:60-71, lang:"smalltalk"] ( code/smalltalk/tree_traversal.st )
292
304
{% sample lang="go" %}
293
305
[ import:51-60, lang:"go"] ( code/golang/treetraversal.go )
294
306
{% sample lang="asm-x64" %}
@@ -351,6 +363,8 @@ The code snippets were taken from this [Scratch project](https://scratch.mit.edu
351
363
[ import, lang:"php"] ( code/php/tree_traversal.php )
352
364
{% sample lang="crystal" %}
353
365
[ import, lang:"crystal"] ( code/crystal/tree-traversal.cr )
366
+ {% sample lang="st" %}
367
+ [ import, lang:"smalltalk"] ( code/smalltalk/tree_traversal.st )
354
368
{% sample lang="go" %}
355
369
[ import, lang:"go"] ( code/golang/treetraversal.go )
356
370
{% sample lang="asm-x64" %}
0 commit comments