Given type parameters of F[_] and A[_] how do I turn the following type lambda into the more pleasant Kind-Projector syntax?
({type λ[α] = F[A[α]]})#λ
I would have imagined it would be something like F[A[?_]], but the compiler complains about wanting type parameters in this case.
Using the Lambda (or λ) syntax worked:
λ[α => F[A[α]]]
Found here under Function Syntax.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With