[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Axiom-developer] [Sandbox Curry]

From: Bill Page
Subject: [Axiom-developer] [Sandbox Curry]
Date: Thu, 07 Jul 2005 06:00:24 -0500


-Using the compiler we can write:
Using the compiler we should be able to write:

-MappingPackage3c(A:SetCategory, B:SetCategory, C:SetCategory):_
MappingPackage3c(A:SetCategory, B:SetCategory, C:SetCategory):

    NNI   ==>  NonNegativeInteger

-        curryR:   ((A,B)->C) -> (B->(A ->C))
-        curryL:   ((A,B)->C) -> (A->(B ->C))
        rightCurry:   ((A,B)->C) -> (B->(A ->C))
        leftCurry:   ((A,B)->C) -> (A->(B ->C))

-        fabc: (A,B)->C
-        curryR(fabc) == curryRight(fabc,#1)
-        curryL(fabc) == curryLeft(fabc,#1)
        Fabc: (A,B)->C

        rightCurry(Fabc) == curryRight(Fabc,#1)
        leftCurry(Fabc) == curryLeft(Fabc,#1)

I do not understand this error message.

If this had worked we could have used it this way:

-- plusX:=leftCurry(plus)
--   should be the same as:
plusX(x) == curryLeft(plus,x)
plusX(1)(2) = plus(1,2)

forwarded from

reply via email to

[Prev in Thread] Current Thread [Next in Thread]