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

Implement nand #952

Merged
merged 2 commits into from
Jun 12, 2019
Merged

Implement nand #952

merged 2 commits into from
Jun 12, 2019

Conversation

dawehner
Copy link
Contributor

@dawehner dawehner commented Jun 9, 2019

Tries to solve #237

Note: While committing it, eslint-plugin-ramda had a bug, see ramda/eslint-plugin-ramda#26, so I disabled this specific eslint rule in the configuration. Maybe I'm missing something.

@dawehner dawehner changed the title Imeplement nand Implement nand Jun 9, 2019
@dawehner dawehner mentioned this pull request Jun 9, 2019
.eslintrc Outdated Show resolved Hide resolved
src/index.d.ts Outdated Show resolved Hide resolved
src/nand.js Outdated Show resolved Hide resolved
src/nand.js Outdated Show resolved Hide resolved
src/nand.js Outdated Show resolved Hide resolved
test/nand.js Outdated Show resolved Hide resolved
@dawehner dawehner force-pushed the issue-237 branch 2 times, most recently from cb90bd4 to 9ab183c Compare June 10, 2019 06:21
@dawehner
Copy link
Contributor Author

I hopefully addressed all your feedback now! Thank you for the super quick response

src/index.d.ts Outdated
@@ -979,6 +979,11 @@ declare namespace RamdaAdjunct {
*/
neither(firstPredicate: Function, secondPredicate: Function): Function;

/**
* Returns `true` if both arguments are falsy, otherwise `false`.
Copy link
Owner

Choose a reason for hiding this comment

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

This description is not sync with description in nand.js

test/nand.js Outdated
});

it('should support currying', function() {
const trueNand = nand(true);
Copy link
Owner

Choose a reason for hiding this comment

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

Pls import RA in following way import * as RA from '../src';

can we simplify into ?

it('should support currying', function() {
  eq(RA.nand(true, true), false);
  eq(RA.nand(true)(true), false);   
});

Copy link
Owner

@char0n char0n left a comment

Choose a reason for hiding this comment

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

I've provided last to comments, after processing them we're good to merge. Sorry for a lot of comments, but we're trying to maintain consistency and quality of the codebase very hard ;]

@dawehner
Copy link
Contributor Author

No worries, I totally hear you about opensource projects. Keeping things consistent can be really hard.

@dawehner
Copy link
Contributor Author

I've pushed up a change which hopefully addresses all your feedback. I hope rebasing the PRs is okay.

Copy link
Owner

@char0n char0n left a comment

Choose a reason for hiding this comment

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

Very nice! Let's wait for tests and it's ready for a merge. Thank you again.

@char0n char0n merged commit 7931fa0 into char0n:master Jun 12, 2019
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.

2 participants