def first.of
import bend-kit-postgres@0.3.0.0/scram.bend as Scramimport Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
45def first.of(+user: String, r: Result<&1, &1, U32 & String, U32 & Array<U32>>) -> Result<&1, &1, U32 & String, First & String>:
46 match r:
47 case Fail{e}:
48 Fail{e}
49 case Done{(len, buf)}:
50 Done{first.with(user, Bytes.to_base64(Bytes.Bytes{len, buf}))}