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

Add 'filterNot' to Maybe, NEL and List [ #78 ] #152

Merged
merged 1 commit into from
Nov 5, 2017

Conversation

tomecko
Copy link
Collaborator

@tomecko tomecko commented Nov 5, 2017

No description provided.

### filterNot

```scala
NEL[A].filterNot(fn: (element: A) => Boolean): List[A]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A => Boolean

Copy link
Collaborator Author

@tomecko tomecko Nov 5, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This happens in many places. I can change it...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean .filterNot(fn: A => Boolean), but if there is more (x: A) => B then 👍 for separate PR.

it('will be filtered with filterNot', function () {
var n1 = NEL.fromList(List.fromArray([1, 2, 3, 4, 5, 6, 7, 8])).some()
expect(n1.filterNot(function (a) {
return a % 2 == 0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

== -> === (also mabe fix this in filter tests)

Copy link
Collaborator Author

@tomecko tomecko Nov 5, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This happens in many places. I can change it...

@ulfryk ulfryk merged commit 59ceaa1 into monet:develop Nov 5, 2017
@ulfryk ulfryk added this to the 0.9 Release milestone Jun 17, 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

Successfully merging this pull request may close these issues.

None yet

2 participants