Building a Sequence Recursively

Excellent!
Here are the docs for what was referenced.

The calling function needs a little tweak as well.

val seq0 = sequence { 
       drillDown(root, pruner)
}

I am not sure what you mean by “a special suspend function”.
It seems like if it uses ‘suspend’ in a special way it should be a special suspend function.
In any case, thanks.

1 Like