Date: 2018-04-21 04:46 pm (UTC)
From: [personal profile] sassa_nf
Prelude> first = \t -> t (\x y -> x)
Prelude> :t first
first :: ((t1 -> t2 -> t1) -> t) -> t

That is, if you don't use lambdas, you get your code, but with the corrected types :)

pa :: ((a->b->a)->c)->c
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

juan_gandhi: (Default)
Juan-Carlos Gandhi

July 2025

S M T W T F S
  12345
6789 1011 12
131415 1617 1819
20212223242526
2728293031  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 29th, 2025 02:59 pm
Powered by Dreamwidth Studios