diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2020-03-07 20:58:30 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2020-03-07 20:58:51 +0000 |
| commit | 6a7a2ddaca798f3cccac394d1fb9f317cbe90de6 (patch) | |
| tree | 4e49e53057b39f75813311ede13f87d238061fe6 /lib/util.moon | |
| parent | spellcheck (diff) | |
| download | alive-6a7a2ddaca798f3cccac394d1fb9f317cbe90de6.tar.gz alive-6a7a2ddaca798f3cccac394d1fb9f317cbe90de6.zip | |
add ldoc documentation
Diffstat (limited to 'lib/util.moon')
| -rw-r--r-- | lib/util.moon | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/util.moon b/lib/util.moon index 65bab65..2a43dd2 100644 --- a/lib/util.moon +++ b/lib/util.moon @@ -1,4 +1,4 @@ -import Op, Value, ValueInput, EventInput, ColdInput, match +import Op, Value, Input, match from require 'core.base' all_same = (list) -> @@ -24,8 +24,8 @@ when i is a num, it is (floor)ed and the matching argument (starting from 0) is @out = Value typ super - i: ValueInput i - values: [ValueInput v for v in *values] + i: Input.value i + values: [Input.value v for v in *values] tick: => { :i, :values } = @inputs @@ -74,7 +74,7 @@ class edge extends Op setup: (inputs) => { value } = match 'bool', inputs - super value: EventInput + super value: Input.value tick: => now = @inputs.value! @@ -91,8 +91,8 @@ default defaults to zero." setup: (params) => { value, init } = match 'any any', inputs super - value: EventInput value - init: ColdInput init + value: Input.event value + init: Input.cold init @out = Value value\type! @out\set @inputs.init\unwrap! |
