1
는 주어의 이해 : 은`decEq`
*section3> :module Data.Vect
*section3> :let e = the (Vect 0 Int) []
*section3> :let xs = the (Vect _ _) [1,2]
*section3> decEq xs e
(input):1:7:When checking argument x2 to function Decidable.Equality.decEq:
Type mismatch between
Vect 0 Int (Type of e)
and
Vect 2 Integer (Expected type)
Specifically:
Type mismatch between
0
and
2
왜
Nat
인수 DecEq 서로 동일해야?
주 - https://groups.google.com/forum/#!topic/idris-lang/qgtImCLka3I에 게시 원래
'VECT 0 Int'와'VECT 1 Int' :
먼저 균일 한 버전으로 위임 한 후, 자신의 길이를 확인하여 같은 요소 유형의
Vect
ORS에 대한 자신의 이종 평등 결정자를 쓸 수 있습니다 'Vect n Int'와'Vect n Float'과 같은 타입이 있습니다. – gallais