Skip to content

Rename "count" to "countPrefix" #81

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

Closed
chexxor opened this issue Jun 2, 2017 · 1 comment
Closed

Rename "count" to "countPrefix" #81

chexxor opened this issue Jun 2, 2017 · 1 comment

Comments

@chexxor
Copy link

chexxor commented Jun 2, 2017

With the next release of breaking changes to this library, the "count" function should be given a better name. My expectation of "count" function in context of a string is to tell me how many characters are in that string, but this "count" function actually counts the prefix characters which satisfy a predicate.

One suggested name is "countPrefix".

Issue originally raised in #79 (comment)

@garyb
Copy link
Member

garyb commented May 18, 2018

Resolved in the 0.12 branch

@garyb garyb closed this as completed May 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants