diff options
author | Eduardo Julian | 2022-03-14 06:14:57 -0400 |
---|---|---|
committer | Eduardo Julian | 2022-03-14 06:14:57 -0400 |
commit | 4965597043aca57a05760113f1851e96dad1eaf8 (patch) | |
tree | 8126d3e6394e38bc52918eea95a67546350bb95e /stdlib/source/test/lux/control/concurrency/async.lux | |
parent | cfd438517a46e025b15345e3570b02f5ea6165c0 (diff) |
Leaner syntax for the "for" macro.
Diffstat (limited to 'stdlib/source/test/lux/control/concurrency/async.lux')
-rw-r--r-- | stdlib/source/test/lux/control/concurrency/async.lux | 55 |
1 files changed, 27 insertions, 28 deletions
diff --git a/stdlib/source/test/lux/control/concurrency/async.lux b/stdlib/source/test/lux/control/concurrency/async.lux index 76b331bb9..7f844f558 100644 --- a/stdlib/source/test/lux/control/concurrency/async.lux +++ b/stdlib/source/test/lux/control/concurrency/async.lux @@ -1,30 +1,30 @@ (.using - [library - [lux "*" - ["_" test {"+" Test}] - ["@" target] - [abstract - [monad {"+" do}] - [\\specification - ["$[0]" functor {"+" Injection Comparison}] - ["$[0]" apply] - ["$[0]" monad]]] - [control - [pipe {"+" case>}] - ["[0]" io]] - [time - ["[0]" instant] - ["[0]" duration]] - [math - ["[0]" random] - [number - ["n" nat] - ["i" int] - ["[0]" i64]]]]] - [\\library - ["[0]" / - [// - ["[0]" atom {"+" Atom}]]]]) + [library + [lux "*" + ["_" test {"+" Test}] + ["@" target] + [abstract + [monad {"+" do}] + [\\specification + ["$[0]" functor {"+" Injection Comparison}] + ["$[0]" apply] + ["$[0]" monad]]] + [control + [pipe {"+" case>}] + ["[0]" io]] + [time + ["[0]" instant] + ["[0]" duration]] + [math + ["[0]" random] + [number + ["n" nat] + ["i" int] + ["[0]" i64]]]]] + [\\library + ["[0]" / + [// + ["[0]" atom {"+" Atom}]]]]) (def: injection (Injection /.Async) @@ -46,8 +46,7 @@ false)))))) (def: delay - (for [@.js - (i64.left_shifted 4 1)] + (for @.js (i64.left_shifted 4 1) (i64.left_shifted 3 1))) (def: .public test |