Skip to content
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

Change description of List.member #316

Merged
merged 1 commit into from
Aug 2, 2015
Merged

Change description of List.member #316

merged 1 commit into from
Aug 2, 2015

Conversation

jessitron
Copy link

because this function is called 'contains' in many languages, I hit
this documentation, searched for 'contains,' and didn't find the right
method. Putting 'contains' in the description for 'member' help with this

because this function is called 'contains' in many languages, I hit
this documentation, searched for 'contains,' and didn't find the right
method. Putting 'contains' in the description for 'member' help with this
evancz pushed a commit that referenced this pull request Aug 2, 2015
Change description of List.member
@evancz evancz merged commit d2146c1 into elm:master Aug 2, 2015
@evancz
Copy link
Member

evancz commented Aug 2, 2015

Great idea!

I'd be curious to know the list of languages that use that naming convention (and which languages do other things). Perhaps the best move is to rename this to contains in Set and List and Array and such. If you are interested, it would be cool to have a PR in the style of #317 outlining which languages use what and potentially get that added to #322.

Anyway, thanks for the fix!

@Mouvedia
Copy link

Mouvedia commented Dec 24, 2016

I wanted to do something similar for Array. JS has Array.prototype.includes so I wanted to use include. The problem is, there's no member method listed there.

@evancz why is that?

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

Successfully merging this pull request may close these issues.

3 participants