julienrf.enum.Values.Derived
To sum up: we are given the types of the possible A values in a Coproduct structure and we want to define how to traverse this structure to accumulate all the values in a List.
A
Coproduct
List
Induction case: append a value of type L to the R previous values
L
R
Singleton of type L
Base case: no values
To sum up: we are given the types of the possible
A
values in aCoproduct
structure and we want to define how to traverse this structure to accumulate all the values in aList
.