aboutsummaryrefslogtreecommitdiffstats
path: root/lib/string.moon
diff options
context:
space:
mode:
Diffstat (limited to 'lib/string.moon')
-rw-r--r--lib/string.moon9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/string.moon b/lib/string.moon
index 82e9702..6a9b7d7 100644
--- a/lib/string.moon
+++ b/lib/string.moon
@@ -1,4 +1,4 @@
-import Op from require 'core'
+import Stream, Op from require 'core'
class str extends Op
@doc: "(str v1 [v2]...)
@@ -6,12 +6,11 @@ class str extends Op
setup: (...) =>
@children = { ... }
+ @out = Stream 'str'
+ @out
update: (dt) =>
- for child in *@children
- child\update dt
-
- @value = table.concat [tostring child\get! for child in *@children]
+ @out\set table.concat [tostring child\unwrap! for child in *@children]
{
:str, '..': str