Skip to content

Commit

Permalink
Added f module
Browse files Browse the repository at this point in the history
  • Loading branch information
klaudiosinani committed Nov 16, 2018
1 parent 18a83b7 commit 8c967d5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const even = require('./src/even')
const every = require('./src/every')
const excludes = require('./src/excludes')
const ext = require('./src/ext')
const f = require('./src/f')
const fact = require('./src/fact')
const fill = require('./src/fill')
const filter = require('./src/filter')
Expand Down Expand Up @@ -247,6 +248,7 @@ module.exports = {
every,
excludes,
ext,
f,
fact,
fill,
filter,
Expand Down
7 changes: 7 additions & 0 deletions src/f.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
'use strict'
const cons = require('./cons')
const curry = require('./curry')

const f = cons(false)

module.exports = curry(f)

0 comments on commit 8c967d5

Please sign in to comment.