TypeScript · Senior · Question 55 of 75

TypeScript has no higher-kinded types. How do libraries emulate F<A> where F is generic?

Explanation

fp-ts and Effect use such encodings to write functions generic over containers like Option or Array.

Further reading

Problem with a question

TypeScript · Senior · question 55

Test yourself

Take the TypeScript · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz