Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I translate this type lambda into Kind-Projector syntax?

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.

like image 336
Noel M Avatar asked Mar 16 '26 19:03

Noel M


1 Answers

Using the Lambda (or λ) syntax worked:

λ[α => F[A[α]]]

Found here under Function Syntax.

like image 161
Noel M Avatar answered Mar 18 '26 20:03

Noel M