def either
import bolt@1.27.0.0/src/rules/pedantic/rewalk.bend as Rewalkimport 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)}
import bolt@1.27.0.0/src/rules/pedantic/rewalk.bend as Rewalkimport 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)}