Created
February 13, 2020 15:29
-
-
Save Willmo36/6c4d0cc7bed2a0cdc14c2c404a077917 to your computer and use it in GitHub Desktop.
fp-ts magma for discarding left value (think Object.assign)
This file contains hidden or 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
export const getMagmaRight = <A>(): Magma<A> => ({ | |
concat: (a, b) => b | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment