Add Scope::set_or_push.

This commit is contained in:
Stephen Chung
2021-08-14 14:56:15 +08:00
parent 0354f154ce
commit 9c6cea3c9f
2 changed files with 46 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ Enhancements
* `ln` for `Decimal` is now checked and won't panic.
* `Scope::set_value` now takes anything that implements `Into<Cow<str>>`.
* Added `Scope::is_constant` to check if a variable is constant.
* Added `Scope::set_or_push` to add a new variable only if one doesn't already exist.
Version 1.0.2