on master help sign in
Fixed small error in uni:by.
f85a8ccFang
docs/hoon/library/2i.md+1−6
@@ -506,7 +506,7 @@ Union
506 $(b [n.b l.b $(b r.b, a [n.a ~ r.a])], a l.a)
506 $(b [n.b l.b $(b r.b, a [n.a ~ r.a])], a l.a)
507
507
508Produces a map of the union between the keys of `a` and `b`. If `b`
508Produces 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.
510
510
511`a` is a map.
511`a` is a map.
512
512
@@ -523,11 +523,6 @@ shares a key with `a`, the tuple from `a` is preserved.
523 > n
523 > n
524 {[p='a' q=1] [p='c' q=9]}
524 {[p='a' q=1] [p='c' q=9]}
525 > (~(uni by o) n)
525 > (~(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)
531 {[p='d' q=4] [p='a' q=1] [p='c' q=9]}
526 {[p='d' q=4] [p='a' q=1] [p='c' q=9]}
532
527
533------------------------------------------------------------------------
528------------------------------------------------------------------------