diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-08-31 12:59:53 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-08-31 12:59:53 +0200 |
| commit | 3481d8cc81a2b3a14118869c7f0ffe204ff3efc8 (patch) | |
| tree | 907efa2e092366a24e25243854b1a4e088cc04a9 /src/eval/value.rs | |
| parent | ee84bf74083f5b9cc88a2a0a968dc905b1eef22c (diff) | |
More utility functions
- join("a", "b", "c", sep: ", ")
- int("12")
- float("31.4e-1")
- str(10)
- sorted((3, 2, 1))
Diffstat (limited to 'src/eval/value.rs')
| -rw-r--r-- | src/eval/value.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/eval/value.rs b/src/eval/value.rs index 5edf0362..77cb766c 100644 --- a/src/eval/value.rs +++ b/src/eval/value.rs @@ -88,6 +88,11 @@ impl Value { { T::cast(self) } + + /// Join the value with another value. + pub fn join(self, rhs: Self) -> StrResult<Self> { + ops::join(self, rhs) + } } impl Default for Value { |
