blob: 8c10c5dd8062eee045c1953a5289f8fde2b97301 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import Op, ValueInput from require 'core'
class str extends Op
@doc: "(str v1 [v2]...)
(.. v1 [v2]...) - concatenate/stringify values"
new: => super 'str'
setup: (inputs) => super [ValueInput v for v in *inputs]
tick: => @out\set table.concat [tostring v! for v in *@inputs]
{
:str, '..': str
}
|