aboutsummaryrefslogtreecommitdiffstats
path: root/lib/string.moon
blob: 27533816ccb81ae317bf50880d80c683d6549c5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import Op, ValueInput from require 'core.base'

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
}