
A Golang Enabled Pattern
The Go programming language has a unique, built-in concurrency model that can make some processing much easier.
Have one goroutine do some (probably recursive) work. It puts results on a channel. The main goroutine reads results from the channel and possibly does some filtering on those results, like output unique values.