def has.mech
import bend-kit-postgres@0.3.0.0/postgres.bend as Postgresimport Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
import bend-kit-postgres@0.3.0.0/scram.bend as Scram
322def has.mech(xs: List<&1, Bytes.Bytes>) -> Bool:
323 match xs:
324 case Nil{}:
325 False{}
326 case Con{h, t}:
327 Bool.or(String.eq(Bytes.to_string(h), Scram.mechanism()), has.mech(t))