def first.of

bend-kit-postgres@0.3.0.0 · scram.bend:45

import bend-kit-postgres@0.3.0.0/scram.bend as Scram
import 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}))}

Uses (10)

Used by (1)