aqua-playground/aqua/examples/recursiveStreams.aqua

14 lines
244 B
Plaintext
Raw Normal View History

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