mirror of
https://github.com/fluencelabs/aqua-playground
synced 2025-05-12 04:57:14 +00:00
14 lines
244 B
Plaintext
14 lines
244 B
Plaintext
|
|
||
|
service YesNoService("yesno"):
|
||
|
get() -> string
|
||
|
|
||
|
func recursiveStream() -> []string:
|
||
|
result: *string
|
||
|
loop: *string
|
||
|
loop <<- "yes"
|
||
|
for l <- loop:
|
||
|
if l == "yes":
|
||
|
loop <- YesNoService.get()
|
||
|
result <<- "success"
|
||
|
<- result
|