Closed leocavalcante closed 3 years ago
Based on Rust's APIs like map_or() and unwrap_or this PR provides an alternative way for get that returns a default value, instead of throwing an exception, when the key does not exists.
map_or()
unwrap_or
get
Not sure if the PR errors was introduced by my commits, but I'm open to fix if needed.
Based on Rust's APIs like
map_or()
andunwrap_or
this PR provides an alternative way forget
that returns a default value, instead of throwing an exception, when the key does not exists.