Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Context::get_value_cow() #104

Open
wants to merge 265 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
265 commits
Select commit Hold shift + click to select a range
a2a16b5
Added arithmetic operations to allow value types to be arithmeticed
gbemiga-viewserver Feb 23, 2024
159e149
Added arithmetic operations to allow value types to be arithmeticed
gbemiga-viewserver Feb 23, 2024
8b82803
Added arithmetic operations to allow value types to be arithmeticed
gbemiga-viewserver Feb 23, 2024
fc1b08b
Catering for refs
gbemiga-viewserver Feb 23, 2024
167a48d
Added default to value
gbemiga-viewserver Feb 24, 2024
fcccde8
Added is null to eval expr
gbemiga-viewserver Feb 24, 2024
dc42c7a
Added is null to eval expr
gbemiga-viewserver Feb 24, 2024
aef6cbe
Added error to the eval expr crate
gbemiga-viewserver Feb 24, 2024
34204df
Added some custom functions to the eval expr crate
gbemiga-viewserver Feb 24, 2024
4c90f23
Bump version
gbemiga-viewserver Feb 24, 2024
8c6149b
Bump version
gbemiga-viewserver Feb 24, 2024
ce2c510
Bump version
gbemiga-viewserver Feb 24, 2024
0bcd610
Improve calcs
gbemiga-viewserver Feb 24, 2024
ff58957
Improve calcs
gbemiga-viewserver Feb 25, 2024
ce8021c
change calcs to cater for ints
gbemiga-viewserver Feb 25, 2024
c891887
change calcs to cater for ints
gbemiga-viewserver Feb 25, 2024
fd8136f
Gaurd against two value
gbemiga-viewserver Feb 25, 2024
f95d6bc
Gaurd against two value
gbemiga-viewserver Feb 26, 2024
1c7abd3
Gaurd against two value
gbemiga-viewserver Feb 27, 2024
08d314b
Gaurd against two value
gbemiga-viewserver Feb 27, 2024
5124d27
Check for empty values with the arithmetic
gbemiga-viewserver Feb 27, 2024
617af98
Check for empty values with the arithmetic
gbemiga-viewserver Feb 27, 2024
4ab8849
Check for empty values with the arithmetic
gbemiga-viewserver Feb 27, 2024
75028f2
Check for empty values with the arithmetic
gbemiga-viewserver Feb 27, 2024
46e19cb
Check for empty values with the arithmetic
gbemiga-viewserver Feb 27, 2024
69c8fa0
Added more expression functions
gbemiga-viewserver Feb 28, 2024
c57c81c
Added more expression functions
gbemiga-viewserver Feb 28, 2024
54b70f4
Added more expression functions
gbemiga-viewserver Feb 28, 2024
b252e87
Added more expression functions
gbemiga-viewserver Feb 28, 2024
4d7acdf
Added more expression functions
gbemiga-viewserver Feb 28, 2024
04db843
Added more expression functions
gbemiga-viewserver Feb 29, 2024
436e054
Added more expression functions
gbemiga-viewserver Feb 29, 2024
e3048ed
Fixed triangular moving average
gbemiga-viewserver Mar 9, 2024
46d5561
Changed thin trait context to allow setting of values
gbemiga-viewserver Apr 4, 2024
e1f139d
Added compiled transpose calculation templates
gbemiga-viewserver Apr 5, 2024
fa57ca1
Made compiled calcuation templates a thin trait object
gbemiga-viewserver Apr 5, 2024
78f1157
Moved basher trade model
gbemiga-viewserver Apr 5, 2024
f327458
Nudge versiono
gbemiga-viewserver Apr 5, 2024
d2b7a84
seg
gbemiga-viewserver Apr 5, 2024
f8b8c78
Made basher trade model pub
gbemiga-viewserver Apr 5, 2024
19c0ac3
Made basher trade model pub
gbemiga-viewserver Apr 5, 2024
badfeb5
Made basher trade model pub
gbemiga-viewserver Apr 5, 2024
ce21a42
Made basher trade model pub
gbemiga-viewserver Apr 5, 2024
8fd742b
Reinstated compiled expression template
gbemiga-viewserver Apr 7, 2024
f798184
Reinstated compiled expression template
gbemiga-viewserver Apr 8, 2024
4b7abfd
Added trade model
gbemiga-viewserver Apr 8, 2024
0417abf
Added trade model
gbemiga-viewserver Apr 8, 2024
5066176
Added trade model
gbemiga-viewserver Apr 8, 2024
9411984
set value now mutates state
gbemiga-viewserver Apr 8, 2024
1970224
set value now mutates state
gbemiga-viewserver Apr 8, 2024
f9d92a3
set value now mutates state
gbemiga-viewserver Apr 8, 2024
ba3b472
Added channel monitor and changed name of Boxed thin trait
gbemiga-viewserver Apr 9, 2024
dca7a22
Added channel monitor and changed name of Boxed thin trait
gbemiga-viewserver Apr 9, 2024
8c08f5f
Added channel monitor and changed name of Boxed thin trait
gbemiga-viewserver Apr 9, 2024
27c4483
configurable fields in the adaptive stop loss space
gbemiga-viewserver Apr 9, 2024
c9e6cb9
configurable fields in the adaptive stop loss space
gbemiga-viewserver Apr 9, 2024
71ee2ab
configurable fields in the adaptive stop loss space
gbemiga-viewserver Apr 9, 2024
0f9a5d4
configurable fields in the adaptive stop loss space
gbemiga-viewserver Apr 9, 2024
641a87e
configurable fields in the adaptive stop loss space
gbemiga-viewserver Apr 9, 2024
ba88de0
configurable fields in the adaptive stop loss space
gbemiga-viewserver Apr 9, 2024
af9f324
configurable fields in the adaptive stop loss space
gbemiga-viewserver Apr 9, 2024
94526b5
configurable fields in the adaptive stop loss space
gbemiga-viewserver Apr 9, 2024
a99e476
configurable fields in the adaptive stop loss space
gbemiga-viewserver Apr 10, 2024
58edca3
configurable fields in the adaptive stop loss space
gbemiga-viewserver Apr 10, 2024
04afefa
configurable fields in the adaptive stop loss space
gbemiga-viewserver Apr 10, 2024
fd7bb2e
configurable fields in the adaptive stop loss space
gbemiga-viewserver Apr 10, 2024
81a2047
Capture all trade information in final record of trade
gbemiga-viewserver Apr 11, 2024
85a920b
Fixed adaptive trade model
gbemiga-viewserver Apr 11, 2024
707b468
Fixed adaptive trade model
GmeduoyeClaymore May 21, 2024
1540f96
Fixed adaptive trade model
GmeduoyeClaymore May 21, 2024
5d6fb79
Fixed adaptive trade model
GmeduoyeClaymore May 29, 2024
a84390a
Added exit price
GmeduoyeClaymore May 30, 2024
30fcc2c
Fixed adaptive trade model
GmeduoyeClaymore Jun 11, 2024
5ec06df
Fixed adaptive trade model
GmeduoyeClaymore Jun 11, 2024
489766a
Fixed adaptive trade model
GmeduoyeClaymore Jun 11, 2024
9f4d4f5
Chanded TMA
GmeduoyeClaymore Jun 13, 2024
6691199
Added columns len
GmeduoyeClaymore Jun 13, 2024
9a2180a
Fixed expression
GmeduoyeClaymore Jun 14, 2024
752f6dc
Fixed expression
GmeduoyeClaymore Jun 14, 2024
d9d8cad
Fixed expression
GmeduoyeClaymore Jun 14, 2024
61ab6dc
Fixed expression
GmeduoyeClaymore Jun 14, 2024
52e43bd
Fixed expression
GmeduoyeClaymore Jun 14, 2024
0baf44c
Fixed expression
GmeduoyeClaymore Jun 14, 2024
3c6a8fa
panic now returns a custom error
GmeduoyeClaymore Jun 14, 2024
78f56e9
panic now returns a custom error
GmeduoyeClaymore Jun 14, 2024
44291ce
panic now returns a custom error
GmeduoyeClaymore Jun 14, 2024
caea865
panic now returns a custom error
GmeduoyeClaymore Jun 14, 2024
113980d
panic now returns a custom error
GmeduoyeClaymore Jun 14, 2024
c115667
panic now returns a custom error
GmeduoyeClaymore Jun 14, 2024
d00e038
panic now returns a custom error
GmeduoyeClaymore Jun 15, 2024
a525597
Added boxed operator schema trait
GmeduoyeClaymore Jun 15, 2024
435d56a
Added boxed operator schema trait
GmeduoyeClaymore Jun 15, 2024
4266cbb
Added boxed operator schema trait
GmeduoyeClaymore Jun 15, 2024
f43413a
Added boxed operator schema trait
GmeduoyeClaymore Jun 15, 2024
69512d7
Added dot net method accessors
GmeduoyeClaymore Jun 15, 2024
3d8d99c
Added dot net method accessors
GmeduoyeClaymore Jun 16, 2024
9a3e8e5
Added dot net method accessors
GmeduoyeClaymore Jun 16, 2024
d9eb9c2
Added dot net method accessors
GmeduoyeClaymore Jun 16, 2024
8d34c76
Added dot net method accessors
GmeduoyeClaymore Jun 16, 2024
33133ff
Added dot net method accessors
GmeduoyeClaymore Jun 16, 2024
6879f23
Added dot net method accessors
GmeduoyeClaymore Jun 16, 2024
6303594
Added dot net method accessors
GmeduoyeClaymore Jun 16, 2024
dd3e37c
Added dot net method accessors
GmeduoyeClaymore Jun 16, 2024
6ce8a1d
Added dot net method accessors
GmeduoyeClaymore Jun 16, 2024
d0c0d92
Added dot net method accessors
GmeduoyeClaymore Jun 16, 2024
e9a1420
Added dot net method accessors
GmeduoyeClaymore Jun 16, 2024
e5d38c1
Added dot net method accessors
GmeduoyeClaymore Jun 16, 2024
6893aaf
Added dot net method accessors
GmeduoyeClaymore Jun 16, 2024
92caa07
Added dot net method accessors
GmeduoyeClaymore Jun 16, 2024
16eda1b
Added dot net method accessors
GmeduoyeClaymore Jun 16, 2024
7dfd2a2
Added dot net method accessors
GmeduoyeClaymore Jun 16, 2024
8602fb3
Added dot net method accessors
GmeduoyeClaymore Jun 16, 2024
1b02c03
Added dot net method accessors
GmeduoyeClaymore Jun 16, 2024
4ac2ac1
Added dot net method accessors
GmeduoyeClaymore Jun 17, 2024
e237afc
Added dot net method accessors
GmeduoyeClaymore Jun 17, 2024
93365c3
Added dot net method accessors
GmeduoyeClaymore Jun 17, 2024
68d610e
Added dot net method accessors
GmeduoyeClaymore Jun 18, 2024
f9403af
Added dot net method accessors
GmeduoyeClaymore Jun 25, 2024
34164ae
Added dot net method accessors
GmeduoyeClaymore Jun 25, 2024
f5307be
Added dot net method accessors
GmeduoyeClaymore Jun 28, 2024
921cdf2
Added dot net method accessors
GmeduoyeClaymore Jul 4, 2024
1dea95a
Fixed adaptive stop loss model
GmeduoyeClaymore Jul 4, 2024
8e45511
Fixed adaptive stop loss model
GmeduoyeClaymore Jul 8, 2024
58930cd
Fixed substring
GmeduoyeClaymore Jul 8, 2024
5cc10a9
Fixed substring
GmeduoyeClaymore Jul 8, 2024
74d73f2
Fixed substring
GmeduoyeClaymore Jul 8, 2024
cf61993
Fixed delta
GmeduoyeClaymore Jul 9, 2024
c0ccd59
Fixed delta
GmeduoyeClaymore Jul 9, 2024
2c85568
Fixed delta
GmeduoyeClaymore Jul 9, 2024
db223fc
Fixed delta
GmeduoyeClaymore Jul 9, 2024
690038e
Added trade id field
GmeduoyeClaymore Jul 9, 2024
f577f34
Added trade id field
GmeduoyeClaymore Jul 9, 2024
3fcf9b3
Added trade id field
GmeduoyeClaymore Jul 12, 2024
6c2b3b6
Added trade id field
GmeduoyeClaymore Jul 12, 2024
1817528
Added trade id field
GmeduoyeClaymore Jul 12, 2024
7d46a3c
Added trade id field
GmeduoyeClaymore Aug 3, 2024
b0a0207
Added trade id field
GmeduoyeClaymore Aug 3, 2024
99ad389
Added trade id field
GmeduoyeClaymore Aug 3, 2024
d4aa339
Added trade id field
GmeduoyeClaymore Aug 4, 2024
d4de2a9
Added trade id field
GmeduoyeClaymore Aug 6, 2024
c3661bd
Added trade id field
GmeduoyeClaymore Aug 6, 2024
e9b9d90
Added trade id field
GmeduoyeClaymore Aug 6, 2024
35e6b80
Added trade id field
GmeduoyeClaymore Aug 7, 2024
6a7088c
Added trade id field
GmeduoyeClaymore Aug 7, 2024
1c2b929
Added trade id field
GmeduoyeClaymore Aug 7, 2024
2347893
Another commit
gbemiga-viewserver Aug 16, 2024
4bd37d9
Another commit
gbemiga-viewserver Aug 16, 2024
4391edb
Another commit
gbemiga-viewserver Aug 16, 2024
74807a8
Another commit
gbemiga-viewserver Aug 16, 2024
c7af822
Another commit
gbemiga-viewserver Aug 16, 2024
7843a2c
Another commit
gbemiga-viewserver Aug 16, 2024
e374bd2
Ordered float added bucet data tests added
gbemiga-viewserver Aug 17, 2024
5b88ddb
Ordered float added bucet data tests added
gbemiga-viewserver Aug 17, 2024
674400d
Ordered float added bucet data tests added
gbemiga-viewserver Aug 17, 2024
1fb6a7f
bucket indexes now start at 1
gbemiga-viewserver Aug 17, 2024
ef5e544
bucket indexes now start at 1
gbemiga-viewserver Aug 17, 2024
606b436
bucket indexes now start at 1
gbemiga-viewserver Aug 17, 2024
208c8c7
bucket indexes now start at 1
gbemiga-viewserver Aug 17, 2024
95b510f
bucket indexes now start at 1
gbemiga-viewserver Aug 17, 2024
c4961d4
bucket indexes now start at 1
gbemiga-viewserver Aug 17, 2024
7d3c445
bucket indexes now start at 1
gbemiga-viewserver Aug 17, 2024
3db95c9
bucket indexes now start at 1
gbemiga-viewserver Aug 17, 2024
aaa3f65
bucket indexes now start at 1
gbemiga-viewserver Aug 17, 2024
63366b5
bucket indexes now start at 1
gbemiga-viewserver Aug 17, 2024
354112f
bucket indexes now start at 1
gbemiga-viewserver Aug 17, 2024
f79368e
bucket indexes now start at 1
gbemiga-viewserver Aug 18, 2024
5edaa01
bucket indexes now start at 1
gbemiga-viewserver Aug 18, 2024
0287539
bucket indexes now start at 1
gbemiga-viewserver Aug 18, 2024
cd55dd2
bucket indexes now start at 1
gbemiga-viewserver Aug 18, 2024
145d12f
bucket indexes now start at 1
gbemiga-viewserver Aug 18, 2024
0ac97c6
bucket indexes now start at 1
gbemiga-viewserver Aug 18, 2024
8355431
Functions now take an operator row trait
gbemiga-viewserver Aug 18, 2024
f9e2dce
Added change tracking to context
gbemiga-viewserver Aug 19, 2024
8cddb48
Added change tracking to context
gbemiga-viewserver Aug 19, 2024
d49fe52
Added change tracking to context
gbemiga-viewserver Aug 19, 2024
c91cdfe
Added change tracking to context
gbemiga-viewserver Aug 19, 2024
47e6459
Added change tracking to context
gbemiga-viewserver Aug 19, 2024
ddd9399
Added rolling min and rolling stdev
gbemiga-viewserver Aug 20, 2024
f6d53f7
Added rolling min and rolling stdev
gbemiga-viewserver Aug 21, 2024
fc1b835
Added rolling min and rolling stdev
gbemiga-viewserver Aug 21, 2024
c5c4aa2
Added rolling min and rolling stdev
gbemiga-viewserver Aug 21, 2024
9a55201
Added column indexing to calc templates
gbemiga-viewserver Aug 21, 2024
1dab43a
Fixed build
gbemiga-viewserver Aug 21, 2024
acafb6d
Fixed build
gbemiga-viewserver Aug 21, 2024
59adb6b
Fixed build
gbemiga-viewserver Aug 21, 2024
4791306
Fixed build
gbemiga-viewserver Aug 21, 2024
6d059e4
Fixed barfing with empty field to bucket
gbemiga-viewserver Aug 21, 2024
d9dd2a8
Fixed barfing with empty field to bucket
gbemiga-viewserver Aug 21, 2024
0a076da
Refactor to reduce no calls across the FFI
gbemiga-viewserver Aug 22, 2024
208b4df
Refactor to reduce no calls across the FFI
gbemiga-viewserver Aug 22, 2024
6a6f340
Refactor to reduce no calls across the FFI
gbemiga-viewserver Aug 22, 2024
0af9a85
Refactor to reduce no calls across the FFI
gbemiga-viewserver Aug 22, 2024
3e820e0
Refactor to reduce no calls across the FFI
gbemiga-viewserver Aug 23, 2024
c9e048b
Refactor to reduce no calls across the FFI
gbemiga-viewserver Aug 23, 2024
8288f8a
Refactor to reduce no calls across the FFI
gbemiga-viewserver Aug 24, 2024
4e70fe8
Refactor to reduce no calls across the FFI
gbemiga-viewserver Aug 24, 2024
82cacf0
Refactor to reduce no calls across the FFI
gbemiga-viewserver Aug 25, 2024
3882fd0
Changed strings into CowData to avoid copying
gbemiga-viewserver Aug 25, 2024
8b034c5
Changed strings into CowData to avoid copying
gbemiga-viewserver Aug 25, 2024
99fb835
Changed strings into CowData to avoid copying
gbemiga-viewserver Aug 25, 2024
bbae589
export value
gbemiga-viewserver Aug 25, 2024
c4c9e1c
export value
gbemiga-viewserver Aug 25, 2024
d88cdbb
export value
gbemiga-viewserver Aug 25, 2024
10eacc7
export value
gbemiga-viewserver Aug 25, 2024
cbc7b78
export value
gbemiga-viewserver Aug 25, 2024
a352716
export value
gbemiga-viewserver Aug 25, 2024
e4822ab
export value
gbemiga-viewserver Aug 25, 2024
ad40dd4
export value
gbemiga-viewserver Aug 25, 2024
4e5678a
export value
gbemiga-viewserver Aug 25, 2024
80b163c
export value
gbemiga-viewserver Aug 25, 2024
2010304
export value
gbemiga-viewserver Aug 25, 2024
b1142a5
export value
gbemiga-viewserver Aug 25, 2024
c6bda47
export value
gbemiga-viewserver Aug 26, 2024
5b6d110
export value
gbemiga-viewserver Aug 26, 2024
5f7d5c0
export value
gbemiga-viewserver Aug 26, 2024
5c654dc
export value
gbemiga-viewserver Aug 26, 2024
c499660
export value
gbemiga-viewserver Aug 26, 2024
ebd29dc
Model now respects days since last trade
gbemiga-viewserver Aug 27, 2024
22c78aa
Model now respects days since last trade
gbemiga-viewserver Aug 28, 2024
6e24a1c
Exported bucket functions
gbemiga-viewserver Aug 28, 2024
1e291b3
Exported bucket functions
gbemiga-viewserver Aug 28, 2024
63a32c9
new generic type for each bucket type param
gbemiga-viewserver Aug 28, 2024
7adf63e
Added correlation analysis
gbemiga-viewserver Aug 29, 2024
71a9214
Added correlation analysis
gbemiga-viewserver Aug 29, 2024
688b1a6
Added correlation analysis
gbemiga-viewserver Aug 29, 2024
54f4e6d
Added correlation analysis
gbemiga-viewserver Aug 29, 2024
25827fc
Added correlation analysis
gbemiga-viewserver Aug 30, 2024
7fa4878
dot infront of lowest bucket to make it appear at top of list when so…
gbemiga-viewserver Aug 30, 2024
d061a43
dot infront of lowest bucket to make it appear at top of list when so…
gbemiga-viewserver Aug 31, 2024
1190963
Added some report functions
gbemiga-viewserver Sep 1, 2024
9cc5bff
Added some report functions
gbemiga-viewserver Sep 1, 2024
f59e07c
Added some report functions
gbemiga-viewserver Sep 1, 2024
63d9f71
Added some report functions
gbemiga-viewserver Sep 1, 2024
94cc49c
Added or and and functions
gbemiga-viewserver Sep 3, 2024
de88812
Added or and and functions
gbemiga-viewserver Sep 4, 2024
448d833
Added ATan
gbemiga-viewserver Sep 4, 2024
1eb6725
Added ATan
gbemiga-viewserver Sep 4, 2024
d0a10ce
Added some report functions
gbemiga-viewserver Sep 7, 2024
df99927
Added some report functions
gbemiga-viewserver Sep 7, 2024
5a7c410
Added some report functions
gbemiga-viewserver Sep 7, 2024
02ebc3a
Added some report functions
gbemiga-viewserver Sep 7, 2024
ca9c832
Added some report functions
gbemiga-viewserver Sep 8, 2024
eef4715
Added some report functions
gbemiga-viewserver Sep 8, 2024
7691bd1
Added some report functions
gbemiga-viewserver Sep 8, 2024
cf2f0ff
Added some report functions
gbemiga-viewserver Sep 9, 2024
72ed12d
Added some report functions
gbemiga-viewserver Sep 9, 2024
2bbeb9f
Added atan
gbemiga-viewserver Oct 24, 2024
dd256d5
Added atan
gbemiga-viewserver Oct 24, 2024
9274ec0
added days between
gbemiga-viewserver Oct 24, 2024
e75f1e3
added days between
gbemiga-viewserver Oct 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "evalexpr"
version = "7.2.0"
version = "7.2.15"
description = "A powerful arithmetic and boolean expression evaluator"
keywords = ["expression", "evaluate", "evaluator", "arithmetic", "boolean"]
categories = ["parsing", "game-engines"]
Expand All @@ -26,10 +26,34 @@ path = "src/lib.rs"
regex = { version = "1.5.5", optional = true}
serde = { version = "1.0.133", optional = true}
serde_derive = { version = "1.0.133", optional = true}
num-traits = "0.2.14"
indexmap = "2.4.0"
deepsize = "0.2.0"
ndarray = "0.15"
ndarray-linalg = { version = "0.15" }
linregress = "0.5"
workdays = "0.1.3"
#csv = "1.1"
#anyhow = "1.0.86"
thin_trait_object = { git = "https://github.com/gbemiga-viewserver/thin_trait_object", branch = "main" }
chrono = { version = "0.4.19", default-features = false, features = ["clock", "std"] }
paste = "1.0.14"
percent-encoding = "2.3.1"
lazy_static = "1.5.0"


[features]
serde_support = ["serde", "serde_derive"]
default = ["serde_support"]
regex_support = ["regex"]
serde_json_support = ["serde_json", "log"]

[dependencies.serde_json]
version = "*"
optional = true
[dependencies.log]
version = "*"
optional = true

[dev-dependencies]
ron = "0.7.0"
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ assert_eq!(eval_empty_with_context_mut("a = 5", &mut context), Ok(EMPTY_VALUE));
assert_eq!(eval_empty_with_context_mut("a = 5.0", &mut context),
Err(EvalexprError::expected_int(Value::from(5.0))));
// We can check which value the context stores for a like this
assert_eq!(context.get_value("a"), Some(&Value::from(5)));
assert_eq!(context.get_value("a"), Some(Value::from(5)));
// And use the value in another expression like this
assert_eq!(eval_int_with_context_mut("a = a + 2; a", &mut context), Ok(7));
// It is also possible to save a bit of typing by using an operator-assignment operator
Expand Down Expand Up @@ -223,7 +223,7 @@ assert_eq!(eval_empty_with_context_mut("a = 5", &mut context), Ok(EMPTY_VALUE));
assert_eq!(eval_empty_with_context_mut("a = 5.0", &mut context),
Err(EvalexprError::expected_int(5.0.into())));
assert_eq!(eval_int_with_context("a", &context), Ok(5));
assert_eq!(context.get_value("a"), Some(5.into()).as_ref());
assert_eq!(context.get_value("a"), Some(5.into()));
```

For each binary operator, there exists an equivalent operator-assignment operator.
Expand Down Expand Up @@ -314,8 +314,8 @@ assert_eq!(eval_int_with_context("a", &context), Ok(5));
// We can write or overwrite variables in expressions...
assert_eq!(eval_with_context_mut("a = 10; b = 1.0;", &mut context), Ok(().into()));
// ...and read the value in code like this
assert_eq!(context.get_value("a"), Some(&Value::from(10)));
assert_eq!(context.get_value("b"), Some(&Value::from(1.0)));
assert_eq!(context.get_value("a"), Some(Value::from(10)));
assert_eq!(context.get_value("b"), Some(Value::from(1.0)));
```

Contexts are also required for user-defined functions.
Expand Down
Loading