mirror of
https://github.com/fluencelabs/aqua-playground
synced 2025-03-28 03:31:21 +00:00
14 lines
342 B
Plaintext
14 lines
342 B
Plaintext
import "println.aqua"
|
|
import "builtin.aqua"
|
|
|
|
-- showcases `for` instruction that compiles to `fold` in AIR
|
|
func iterateAndPrint(strings: []string):
|
|
for s <- strings:
|
|
print(s)
|
|
|
|
func iterateAndPrintParallel(nodes: []string, c: Info -> ()):
|
|
for s <- nodes par:
|
|
on s:
|
|
ads <- Peer.identify()
|
|
c(ads)
|