def either

bolt@1.27.0.0 · src/rules/suspicious/concat.bend:110

import bolt@1.27.0.0/src/rules/suspicious/concat.bend as Concat
import Base
import bolt@1.27.0.0/src/syntax/lex.bend as Lex

110# the first maybe when it holds a token, else the second
111def either(aa: Maybe<&2, Lex.Tok>, bb: Maybe<&2, Lex.Tok>) -> Maybe<&2, Lex.Tok>:
112  match aa:
113    case None{}:
114      bb
115    case Some{tok}:
116      Some{tok}

Uses (2)

Used by (1)