···7272 }
7373}
74747575-@deprecated("Why not just assert instead babe")
7676-fn try_annot(
7777- result: Result(a, e),
7878- otherwise msg: String,
7979- apply fun: fn(a) -> Result(b, String),
8080-) -> Result(b, String) {
8181- case result {
8282- Ok(x) -> fun(x)
8383- Error(e) -> Error(msg <> "\n\n\n(" <> string.inspect(e) <> ")")
8484- }
8585-}
8686-8775/// I used to just replace with self+new but this seems more neat
8876/// need to see what is actually more efficient, I doubt it makes much difference though.
8977///