summaryrefslogtreecommitdiff
path: root/src/eval/value.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-08-31 12:59:53 +0200
committerLaurenz <laurmaedje@gmail.com>2021-08-31 12:59:53 +0200
commit3481d8cc81a2b3a14118869c7f0ffe204ff3efc8 (patch)
tree907efa2e092366a24e25243854b1a4e088cc04a9 /src/eval/value.rs
parentee84bf74083f5b9cc88a2a0a968dc905b1eef22c (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.rs5
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 {