Date: 2018-04-21 03:51 am (UTC)
juan_gandhi: (0)
From: [personal profile] juan_gandhi
Я знаю, что если c поменять на a, то сойдется. Но я наивно полагал, что функция типа a->b->a - это частный случай функции типа a->b->c.

Вот, например, скала:

scala> type F2[A,B,C] = A => B => C
defined type alias F2

scala> type P1[A,B] = F2[A,B,A]
defined type alias P1

scala> def p1[A,B]: P1[A,B] = (a:A) => (b:B) => a
p1: [A, B]=> A => (B => A)



Уж не в том ли проблема, что типы Черча в некотором смысле не столь, э, сильны, как типы Карри?
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. 18th, 2025 11:52 pm
Powered by Dreamwidth Studios