on master help sign in
Fixed small error in uni:by.
commitf85a8cc99d2962d04f2aee27c132d5faf0254c94 authorFang <fang@fang.io> dateTue 4 Apr 2017, 13:12 (10 years ago) parent5ecec58
1 file changed+1−6
docs/hoon/library/2i.md+1−6
docs/hoon/library/2i.md+1−6
@@ -506,7 +506,7 @@ Union
506506 $(b [n.b l.b $(b r.b, a [n.a ~ r.a])], a l.a)
507507
508508Produces a map of the union between the keys of `a` and `b`. If `b`
509−shares a key with `a`, the tuple from `a` is preserved.
509+shares a key with `a`, the tuple from `b` is preserved.
510510
511511`a` is a map.
512512
@@ -523,11 +523,6 @@ shares a key with `a`, the tuple from `a` is preserved.
523523 > n
524524 {[p='a' q=1] [p='c' q=9]}
525525 > (~(uni by o) n)
526− {[p='d' q=4] [p='a' q=1] [p='c' q=3]}
527− > =n (mo `(list ,[@t *])`[['a' 1] ['c' 9] ~])
528− > n
529− {[p='a' q=1] [p='c' q=9]}
530− > (~(uni by o) n)
531526 {[p='d' q=4] [p='a' q=1] [p='c' q=9]}
532527
533528------------------------------------------------------------------------