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

How to document curried functions? #73

Open
joelnet opened this issue Oct 2, 2018 · 1 comment
Open

How to document curried functions? #73

joelnet opened this issue Oct 2, 2018 · 1 comment

Comments

@joelnet
Copy link

joelnet commented Oct 2, 2018

How do I document curried functions like this?

const map = func => iterable => {}
@chasm
Copy link

chasm commented Feb 8, 2019

Or this:

// @flow

import { Either, Left, Maybe, Nothing, Right, gt, isNothing } from 'sanctuary'

export default (testValue: Maybe<number> = Nothing): Function =>
  (value: Maybe<number>): Either<string, Maybe<number>> =>
    isNothing(value) || gt(testValue)(value)
      ? Right(value)
      : Left('NOT_GREATER_THAN')

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