Crypto.CrError.lift: def of bend-osdev-crypto@0.1.0.0 Import: import bend-osdev-crypto@0.1.0.0/crypto.bend as Crypto Lines 50-56 of bend-osdev-crypto@0.1.0.0/crypto.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-crypto@0.1.0.0/crypto.bend&start_line=50&end_line=56 import Base # A result with an algorithm's own error type, its error mapped onto CrError def CrError.lift(~E: Data, ~A: Data, ~f: E -> CrError, r: Result<&2, &2, E, A>) -> Result<&2, &2, CrError, A>: match r: case Fail{e}: Fail{f(e)} case Done{x}: Done{x} Uses (2): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=bend-osdev-crypto@0.1.0.0/crypto.bend&name=CrError