@@ -25,7 +25,7 @@ This has not been implemented in your chosen language, so here is the Julia code
25
25
{% sample lang="rs"%}
26
26
[ import:4-7, lang:"rust"] ( code/rust/tree.rs )
27
27
{% sample lang="hs"%}
28
- [ import:1-3 , lang:"haskell"] ( code/haskell/TreeTraversal.hs )
28
+ [ import:1-4 , lang:"haskell"] ( code/haskell/TreeTraversal.hs )
29
29
{% sample lang="swift"%}
30
30
[ import:1-9, lang:"swift"] ( code/swift/tree.swift )
31
31
{% sample lang="php"%}
@@ -59,7 +59,7 @@ Because of this, the most straightforward way to traverse the tree might be recu
59
59
{% sample lang="rs"%}
60
60
[ import:9-15 lang:"rust"] ( code/rust/tree.rs )
61
61
{% sample lang="hs"%}
62
- [ import:5-6 , lang:"haskell"] ( code/haskell/TreeTraversal.hs )
62
+ [ import:6-7 , lang:"haskell"] ( code/haskell/TreeTraversal.hs )
63
63
{% sample lang="swift"%}
64
64
[ import:24-30, lang:"swift"] ( code/swift/tree.swift )
65
65
{% sample lang="php"%}
@@ -101,7 +101,7 @@ Now, in this case the first element searched through is still the root of the tr
101
101
{% sample lang="rs"%}
102
102
[ import:17-23, lang:"rust"] ( code/rust/tree.rs )
103
103
{% sample lang="hs"%}
104
- [ import:8-9 , lang:"haskell"] ( code/haskell/TreeTraversal.hs )
104
+ [ import:9-10 , lang:"haskell"] ( code/haskell/TreeTraversal.hs )
105
105
{% sample lang="swift"%}
106
106
[ import:32-38, lang:"swift"] ( code/swift/tree.swift )
107
107
{% sample lang="php"%}
@@ -138,7 +138,7 @@ In this case, the first node visited is at the bottom of the tree and moves up t
138
138
{% sample lang="rs"%}
139
139
[ import:25-38, lang:"rust"] ( code/rust/tree.rs )
140
140
{% sample lang="hs"%}
141
- [ import:11-15 , lang:"haskell"] ( code/haskell/TreeTraversal.hs )
141
+ [ import:12-16 , lang:"haskell"] ( code/haskell/TreeTraversal.hs )
142
142
{% sample lang="swift"%}
143
143
[ import:40-53, lang:"swift"] ( code/swift/tree.swift )
144
144
{% sample lang="php"%}
@@ -185,8 +185,7 @@ In code, it looks like this:
185
185
{% sample lang="rs"%}
186
186
[ import:40-47, lang:"rust"] ( code/rust/tree.rs )
187
187
{% sample lang="hs"%}
188
- This has not been implemented in your chosen language, so here is the Julia code
189
- [ import:45-56, lang:"julia"] ( code/julia/Tree.jl )
188
+ [ import:18-22, lang:"haskell"] ( code/haskell/TreeTraversal.hs )
190
189
{% sample lang="swift"%}
191
190
[ import:55-67, lang:"swift"] ( code/swift/tree.swift )
192
191
{% sample lang="php"%}
@@ -225,7 +224,7 @@ And this is exactly what Breadth-First Search (BFS) does! On top of that, it can
225
224
{% sample lang="rs"%}
226
225
[ import:49-57, lang:"rust"] ( code/rust/tree.rs )
227
226
{% sample lang="hs"%}
228
- [ import:17-20 , lang:"haskell"] ( code/haskell/TreeTraversal.hs )
227
+ [ import:24-28 , lang:"haskell"] ( code/haskell/TreeTraversal.hs )
229
228
{% sample lang="swift"%}
230
229
[ import:69-81, lang:"swift"] ( code/swift/tree.swift )
231
230
{% sample lang="php"%}
0 commit comments