Last active
April 17, 2021 23:52
-
-
Save waynevanson/683fb99ccab09fb79f29b18de0193139 to your computer and use it in GitHub Desktop.
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
// defined in fp-ts | |
export interface Functor<F> { | |
map: <A,B>(f: (a:A) => B) => (fa: HKT<F,A>) => HKT<F,B> | |
} | |
// How it looks in an array | |
export interface FunctorArray extends Functor<"Array"> { | |
map: <A,B>(f: (a:A) => B) => (fa: Array<A>) => Array<B> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment