question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

derivable methods are contradictory

See original GitHub issue

Applicative:

A value that implements the Applicative specification must also implement the Apply specification.

Apply:

A value that implements the Apply specification must also implement the Functor specification.

Functor:

A value which has a Functor must provide a map method.

So a value that implements the Applicative specification must provide a map method.

Here is the contradiction:

A value which satisfies the specification of an Applicative does not need to implement:

  • Functor’s map; derivable as function(f) { return this.of(f).ap(this); }

Is there a semantic difference between “implements the Applicative specification” and “satisfies the specification of an Applicative”?

I’m wondering whether Ramda’s map function should operate on a value which provides of and ap but not map. The fact that derivations are mentioned in the spec suggests they are desirable, but as written it doesn’t seem correct to derive implementations.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:30 (21 by maintainers)

github_iconTop GitHub Comments

1reaction
davidchamberscommented, May 3, 2016

@puffnfresh, could you state definitively how to resolve the contradiction? The rest of us are guessing.

0reactions
puffnfreshcommented, May 13, 2016

👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Proof by contradiction - Wikipedia
In logic and mathematics, proof by contradiction is a form of proof that establishes the truth or the validity of a proposition, by...
Read more >
Conflicting Findings in Mixed Methods ... - SAGE Journals
To derive a contradiction from the two statements, a further premise is required, namely, ''Global warming is man- made if and only if...
Read more >
Reconciling incongruous qualitative and quantitative findings ...
Cases in which findings from different methods are congruous are generally thought of as ideal, while conflicting findings may, ...
Read more >
Mixed-Methods Research: A Discussion on its Types ... - ERIC
Thirdly, a mixed-method research design enables researchers to explain seemingly contradictory outcomes emerging from the use of different ...
Read more >
Method of Proofs
This method works by assuming your implication is not true, then deriving a contradiction. Recall that if p is false then p -->...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found