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

Comments

@joelnet
Copy link

commented Oct 2, 2018

How do I document curried functions like this?

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

This comment has been minimized.

Copy link

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
Projects
None yet
2 participants
You can’t perform that action at this time.