Lift a successful value into a ResultAsync.
const fetchCached = (id: string) => cache.has(id) ? ok(cache.get(id)!) : loadUser(id) Copy
const fetchCached = (id: string) => cache.has(id) ? ok(cache.get(id)!) : loadUser(id)
Lift a successful value into a ResultAsync.