Skip to content

Commit

Permalink
Fix arrows
Browse files Browse the repository at this point in the history
  • Loading branch information
mgreystone committed Jan 12, 2018
1 parent 80939a9 commit f73c5f1
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions API.md
Expand Up @@ -4,10 +4,10 @@
| -------- | --------- |
| [`all`](#all) | `[Promise a] -> Promise [a]` |
| [`backoff`](#backoff) | `Number -> Number -> (a... -> Promise b) -> a... -> Promise b` |
| [`combine`](#combine) | `({ k: v } -> { k: v }) -> { k: v }` |
| [`combineAll`](#combineall) | `[a... -> { k: v }] -> { k: v } -> { k: v }` |
| [`combineAllP`](#combineallp) | `[a... -> Promise { k: v }] -> { k: v } -> Promise { k: v }` |
| [`combineP`](#combinep) | `({ k: v } -> Promise { k: v }) -> Promise { k: v }` |
| [`combine`](#combine) | `({ k: v } -> { k: v }) -> { k: v } -> { k: v }` |
| [`combineAll`](#combineall) | `[({ k: v }, ...) -> { k: v }] -> ({ k: v }, ...) -> { k: v }` |
| [`combineAllP`](#combineallp) | `[({ k: v }, ...) -> Promise { k: v }] -> ({ k: v }, ...) -> Promise { k: v }` |
| [`combineP`](#combinep) | `({ k: v } -> Promise { k: v }) -> { k: v } -> Promise { k: v }` |
| [`combineWith`](#combinewith) | `(c -> b -> d) (a -> b) -> c -> d` |
| [`combineWithP`](#combinewithp) | `(c -> b -> d) (a -> Promise b) -> Promise c -> Promise d` |
| [`convergeP`](#convergep) | `(b -> c -> Promise d) -> [(a -> Promise b), (a -> Promise c)] -> a -> Promise d` |
Expand Down
2 changes: 1 addition & 1 deletion src/combine.js
@@ -1,5 +1,5 @@
const merge = require('ramda/src/merge')
const combineWith = require('./combineWith')

// combine : ({ k: v } -> { k: v }) -> { k: v }
// combine : ({ k: v } -> { k: v }) -> { k: v } -> { k: v }
module.exports = combineWith(merge)
2 changes: 1 addition & 1 deletion src/combineAll.js
Expand Up @@ -3,6 +3,6 @@ const identity = require('ramda/src/identity')
const juxt = require('ramda/src/juxt')
const mergeAll = require('ramda/src/mergeAll')

// combineAll : [a... -> { k: v }] -> { k: v } -> { k: v }
// combineAll : [({ k: v }, ...) -> { k: v }] -> ({ k: v }, ...) -> { k: v }
module.exports = fns =>
compose(mergeAll, juxt([ identity, ...fns ]))
2 changes: 1 addition & 1 deletion src/combineAllP.js
Expand Up @@ -4,6 +4,6 @@ const mergeAll = require('ramda/src/mergeAll')

const juxtP = require('./juxtP')

// combineAllP : [a... -> Promise { k: v }] -> { k: v } -> Promise { k: v }
// combineAllP : [({ k: v }, ...) -> Promise { k: v }] -> ({ k: v }, ...) -> Promise { k: v }
module.exports = fns =>
composeP(mergeAll, juxtP([ identity, ...fns ]))
2 changes: 1 addition & 1 deletion src/combineP.js
@@ -1,5 +1,5 @@
const merge = require('ramda/src/merge')
const combineWithP = require('./combineWithP')

// combineP : ({ k: v } -> Promise { k: v }) -> Promise { k: v }
// combineP : ({ k: v } -> Promise { k: v }) -> { k: v } -> Promise { k: v }
module.exports = combineWithP(merge)

0 comments on commit f73c5f1

Please sign in to comment.