Yield from function?

Profile Anaysis via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jan 30 03:03:52 PST 2017


I need to yield from a complex recursive function too allow 
visualizing what it is doing.

e.g., if it is a tree searching algorithm, I'd like to yield for 
each node so that the current state can be shown visually.

I realize that there are several ways to do this but D a yield 
version without additional threads would be optimal. I don't need 
concurrency or speed, just simple.


More information about the Digitalmars-d-learn mailing list