-
-
Save denisidoro/6843d26ac9ed1fc38333f772844ceda1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inc() { | |
local -r x="$1" | |
echo $((x+1)) | |
} | |
# returns 42 | |
dict::new foo "lorem" bar 41 \ | |
| dict::assoc baz "ipsum" | |
| dict::dissoc foo \ | |
| dict::update bar inc \ | |
| dict::get bar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment