Created
March 8, 2019 15:08
-
-
Save awto/52528eee8318d05205c7767ccda0fc92 to your computer and use it in GitHub Desktop.
join from chain and of
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const join = (of, chain) => args => args.reduceRight( | |
(acc, eff) => result => chain(eff, element => acc([...result, element])), of)([]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment