Added iterators
Iterators are an unbounded sequence of elements that can only be consumed one-by-one.
This commit is contained in:
parent
badb3b88ba
commit
142abeb990
11 changed files with 614 additions and 62 deletions
|
|
@ -21,6 +21,7 @@ func main() {
|
|||
ucl.WithModule(builtins.CSV(nil)),
|
||||
ucl.WithModule(builtins.FS(nil)),
|
||||
ucl.WithModule(builtins.Log(nil)),
|
||||
ucl.WithModule(builtins.Itrs()),
|
||||
ucl.WithModule(builtins.OS()),
|
||||
ucl.WithModule(builtins.Strs()),
|
||||
ucl.WithModule(builtins.Time()),
|
||||
|
|
|
|||
|
|
@ -26,6 +26,8 @@ func initJS(ctx context.Context) {
|
|||
ucl.WithModule(builtins.Log(nil)),
|
||||
ucl.WithModule(builtins.Strs()),
|
||||
ucl.WithModule(builtins.Time()),
|
||||
ucl.WithModule(builtins.Itrs()),
|
||||
ucl.WithModule(builtins.Lists()),
|
||||
ucl.WithOut(ucl.LineHandler(func(line string) {
|
||||
invokeUCLCallback("onOutLine", line)
|
||||
})),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue