Is it possible to have Generic Anonymous function type?
I was reading this article and found this piece of code.
import { Eq } from 'fp-ts/Eq'
export const not = <A>(E: Eq<A>): Eq<A> => ({
equals: (first, second) => !E.equals(first, second)
})
Is not function here even a valid typescript syntax?
<A,>. Without it it's seems to be a syntax error. What is that comma for?<T>is intrepreted as a JSX tag instead of a generic parmater list. The,forces it to be a generic parameter list. The playground works in TSX mode