-
Notifications
You must be signed in to change notification settings - Fork 4
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
better primitives docs and comments, and some tweaks #30
Conversation
src/primitives.jl
Outdated
`apply` applies some function to every geometry matching the `Target` | ||
GeoInterface trait, in some arbitrarily nested object made up of: | ||
- `AbstractArray`s | ||
- Some arbitrary iterables may also work here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not really sure what this is referring too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean the dot points? They are the types that will be accepted and recursed over by apply
.
Maybe I can make that clearer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or you mean the iterables? it doesn't quite sit with the others but anything unknown (no trait and not an AbstractArray) we try to iterate over.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay yeah that makes sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok I'll try to work that into the text
I did a spell check, but yeah other than my one comment above, I get what it does. Reads pretty well |
Happy for it to merge |
@skygering let me know if this makes more sense to you.
Explaining recursive methods is kind of hard, and I write a lot of code like this so I probably don't see how or what is confusing.