Packages

Various modules and helpers for working with Nimiq primitives in the Gleam programming language or as a CLI

Current section

Files

Jump to
nimiq_gleam src utils misc.gleam
Raw

src/utils/misc.gleam

/// For when you really know the Result cannot be Error
pub fn unwrap(res: Result(a, _)) -> a {
case res {
Ok(a) -> a
Error(_) -> panic as "Called unwrap on an Error value"
}
}