mirror of
https://github.com/fluencelabs/aqua-playground
synced 2025-03-28 10:51:27 +00:00
14 lines
364 B
Plaintext
14 lines
364 B
Plaintext
import "println.aqua"
|
|
import "@fluencelabs/aqua-lib/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)
|