Skip to content
This repository was archived by the owner on Jul 12, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/_docs/v2.3.0/download.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,11 @@ Then install Folktale through npm as well:
Ideally, require only the Folktale modules you'll be using. This helps keeping the overall size smaller. For example, if you're using only the `Maybe` and `compose` functions, don't load the library's entry-point, just those modules:

```js
const Maybe = require('folktale/maybe');
const compose = require('folktale/core/lambda/compose');
import Maybe from 'folktale/maybe';
import compose from 'folktale/core/lambda/compose';

const inc = (x) => x + 1;
const double = (x) => x * 2;
const inc = x => x + 1;
const double = x => x * 2;

Maybe.Just(1).map(compose(double, inc));
// ==> Maybe.Just(4)
Expand Down