Skip to content
Myr

Merge pull request #90 from yeojz/readme-patch-1

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Update readme.md

authored by Michel Weststrate · committed by GitHub · parents 681b162, 353174e · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:readme.md+2 added-2 removed
138 unmodified lines
139140## Currying141142`produce` can be called with one or two arguments.143The one argument version is intended to be used as currying. This means that you get a pre-pound producer, that only needs a state to produce the value from.144The producer function get's passed in the draft, and any further arguments that were passed to the curried function.143The one argument version is intended to be used for currying. This means that you get a pre-bound producer that only needs a state to produce the value from.144The producer function gets passed in the draft, and any further arguments that were passed to the curried function.145146For example:147148```javascript
146 unmodified lines