-
Notifications
You must be signed in to change notification settings - Fork 16
/
from.node.txt
18 lines (12 loc) · 1.67 KB
/
from.node.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM
VERSION ==> #0.1.7
FROM(FUNC(NUM[,FUNC2()]))->ISTREAM#Creates ISTREAM from simple FUNC, by calling this.emit('data', SVAL)
#FUNC can either be:
# - sync: returns true to signal end of stream
# - async:
# - fires FUNC2() to signal end of loop
# - fires this.emit('end') to signal end of stream
#NUM is incremental counter
FROM(SVAL_ARR)->ISTREAM #Shortcut to specify each SVAL instead