add tee
This commit is contained in:
parent
3093b8d4f8
commit
e13371fa4a
1 changed files with 5 additions and 0 deletions
|
@ -152,3 +152,8 @@ export const repeat = curry((n, x) => {
|
||||||
return results
|
return results
|
||||||
})
|
})
|
||||||
|
|
||||||
|
export const tee = curry((f, x) => {
|
||||||
|
f(x)
|
||||||
|
return x
|
||||||
|
})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue