def either

bolt@1.27.0.0 · src/rules/pedantic/rewalk.bend:58

import bolt@1.27.0.0/src/rules/pedantic/rewalk.bend as Rewalk
import Base

58# either read from two results
59def either(aa: Hit, +bb: Hit) -> Hit:
60  Hit{+w1, +s1} = aa
61  Hit{+w2, +s2} = bb
62  Hit{Bool.or(w1, w2), Bool.or(s1, s2)}

Uses (2)

Used by (1)