I have this Rank 3 Type function definition:
f3 :: ((forall a. a -> a) -> Int) -> Bool -> Bool
f3 .... = ?
and I am struggling to write a simple example for it. Can you help?
I have this Rank 3 Type function definition:
f3 :: ((forall a. a -> a) -> Int) -> Bool -> Bool
f3 .... = ?
and I am struggling to write a simple example for it. Can you help?
Copyright © 2021 Jogjafile Inc.
Changing the type to be more interesting, as mentioned in the comments:
Here
f
is essentially of type(Int, Int)
, the first component given byf const
and the other one given byf (const id)
or equivalentlyf (flip const)
.