>
>
> Thanks,
> -Vlad
>
>
> On Sun, Jun 3, 2012 at 2:27 PM, Vlad Patryshev <
vpatr...@gmail.com> wrote:
>
>> So, there seems to be no way to define a constant functor (or a constant
>> parameterized type), or am I wrong?
>>
>> class ConstantFunctor[T[_](value: T[???]) extends Functor[T] {
>> def map[A, B](f: (A) => B) = value
>> }
>>
>> Scalaz has a special class called Const, but I was kind of lost trying to
>> figure out how it could be useful.
>>
>> Or is it all thanks to Free Theorems? How about phantom types then...
>>
>> Thanks,
>> -Vlad
>>