Skip to content

Commit 926f381

Browse files
committed
More Maybe usage examples
1 parent 2af7ff0 commit 926f381

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

JavaScript/3-closure.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ function maybe(x) {
1212

1313
// Usage
1414

15-
maybe(5)()(console.log);
15+
/*maybe(5)()(console.log);
1616
maybe(5)(x => ++x)(console.log);
1717
maybe(5)(x => x * 2)(console.log);
18-
maybe(null)(x => x * 2)(console.log);
19-
maybe(5)(x => x * 2)(x => ++x)(console.log);
18+
maybe(null)(x => x * 2)(console.log);*/
19+
maybe(5)(x => x * 2)()(console.log);

0 commit comments

Comments
 (0)