def osa.swap.b

shake@0.7.0.0 · src/cli.bend:2256

import shake@0.7.0.0/src/cli.bend as Cli
import Base

2256# whether the char before `cb` is `ca`, once the char before `ca` is `xa`
2257def osa.swap.b(+xa: Char, pb: Maybe<&2, Char>, +ca: Char, +cb: Char) -> Bool:
2258  match pb:
2259    case None{}:
2260      False{}
2261    case Some{xb}:
2262      Bool.and(Char.is_eq(ca, xb), Char.is_eq(xa, cb))

Uses (5)

Used by (1)