on master help sign in
updated dojo responses, typos, added link
commitc4ed4fcb5c68b88e953f4df11225aa54d1ff3b6d authorpoprox <51337059+syzygyzer@users.noreply.github.com> dateWed 4 Sep 2019, 13:26 (7 years ago) parentc997318
1 file changed+2−3
learn/hoon/hoon-tutorial/trees-sets-and-maps.md+2−3
learn/hoon/hoon-tutorial/trees-sets-and-maps.md+2−3
@@ -99,14 +99,14 @@ Using `sy`:
9999> =c (sy ~[11 22 33 44 55])
100100
101101> c
102−[n=11 l={} r={22 33 44 55}]
102+[n=11 l={} r={22 55 33 44}]
103103
104104> `(set @)`c
105105{11 22 55 33 44}
106106
107107> =c `(set @)`c
108108```
109−Note that Dojo does not necessarily print elements of a set in the same order they were given. Mathematically speaking, sets are not ordered, so this is alright. There is no difference between two sets with the same elements written in a different order. Try forming `c` with a different ordering and check this.
109+Note that the dojo does not necessarily print elements of a set in the same order they were given. Mathematically speaking, sets are not ordered, so this is alright. There is no difference between two sets with the same elements written in a different order. Try forming `c` with a different ordering and check this.
110110
111111And we can add an item to the set using `put` of `in`:
112112
@@ -320,4 +320,3 @@ You can use `run` of `by` to apply a gate to each value in a map, producing a ma
320320There are other map functions in the Hoon standard library that didn't cover here.
321321
322322### [Next Up: <placeholder>]
323−