Skip to content

Commit

Permalink
Added t module
Browse files Browse the repository at this point in the history
  • Loading branch information
klaudiosinani committed Nov 16, 2018
1 parent 95d5459 commit 18a83b7
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 @@ -168,6 +168,7 @@ const str = require('./src/str')
const sub = require('./src/sub')
const sum = require('./src/sum')
const swap = require('./src/swap')
const t = require('./src/t')
const tail = require('./src/tail')
const take = require('./src/take')
const takeRight = require('./src/take-right')
Expand Down Expand Up @@ -368,6 +369,7 @@ module.exports = {
sub,
sum,
swap,
t,
tail,
take,
takeRight,
Expand Down
7 changes: 7 additions & 0 deletions src/t.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 t = cons(true)

module.exports = curry(t)

0 comments on commit 18a83b7

Please sign in to comment.