-
Notifications
You must be signed in to change notification settings - Fork 441
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add recursiveMap(_:)
#185
base: main
Are you sure you want to change the base?
Add recursiveMap(_:)
#185
Conversation
Is a "recursive mapped sequence" a term of art for a particular structure? I've never heard of it before, and the documentation so far assumes you pretty much already know. A quick web search found something related using the Python language; is the code here supposed to be a Swift adaptation of the Python code? The concept seems to be a way to do tree traversal without that type having to provide its own depth- and breath-first iterators; you just have to supply a function to map an element to a |
This method is simplified recursive CTE, which can map a hierarchical table to a linear sequence. I don’t known what’s the name of this operation. So I call it recursive map. |
add
recursiveMap()
method.Checklist