-
Notifications
You must be signed in to change notification settings - Fork 141
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
Rules for takeWhile and dropWhile #275
Conversation
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.
LGTM.
While reviewing this, I was looking for example incantations of break[Byte]
and span[Byte]
, but couldn't find any in the documentation. Does this sound worth fixing/tracking?
@sjakobi do you mean Lines 879 to 884 in 14db3e4
Lines 942 to 947 in 14db3e4
|
Yeah. I realized too late that I could simply look at |
OK, I decided to grab an opportunity to improve documentation for this functions as well. |
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.
Some nits in the docs
@vdukhovni sorry, I'm not a native speaker, but what is wrong with "a {part/suffix/prefix} of xs, elements of which bla-bla-bla"? |
As an inserted clause, "elements of which satisfy ...", to me sounds closer to the kind of language one might find in legal contracts, than in day-to-day English... It might be best in the positive case to write:
and in the negative case
With the only possibly confusing case being with "break" which returns both parts, and so then adds ", and the rest ...", with some confusion about what the "and ..." is associated with. That's part of the reason I wanted to eliminated the inserted clause and go with " a ... of xs all/none of whose elements ..., and the rest ...". What do you think? |
@vdukhovni how is it looking now? |
Better. Thanks. |
Closes #176.