Skip to content

Instantly share code, notes, and snippets.

@Willmo36
Created February 13, 2020 15:29
Show Gist options
  • Save Willmo36/6c4d0cc7bed2a0cdc14c2c404a077917 to your computer and use it in GitHub Desktop.
Save Willmo36/6c4d0cc7bed2a0cdc14c2c404a077917 to your computer and use it in GitHub Desktop.
fp-ts magma for discarding left value (think Object.assign)
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