diff options
Diffstat (limited to 'lib/string.moon')
| -rw-r--r-- | lib/string.moon | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/string.moon b/lib/string.moon index 6a9b7d7..8c10c5d 100644 --- a/lib/string.moon +++ b/lib/string.moon @@ -1,16 +1,12 @@ -import Stream, Op from require 'core' +import Op, ValueInput from require 'core' class str extends Op @doc: "(str v1 [v2]...) (.. v1 [v2]...) - concatenate/stringify values" + new: => super 'str' - setup: (...) => - @children = { ... } - @out = Stream 'str' - @out - - update: (dt) => - @out\set table.concat [tostring child\unwrap! for child in *@children] + setup: (inputs) => super [ValueInput v for v in *inputs] + tick: => @out\set table.concat [tostring v! for v in *@inputs] { :str, '..': str |
