Category:CafeOBJ: Difference between revisions
m
→Examples
m (→Examples) |
|||
Line 57:
vars N N' : Nat
-- The program is in the form of a
▲-- The program is in the form of a condition equation, which will swap N and N' if N is larger or equal to N'.
-- There is no need for an intermediate variable to do the swap.
ceq[swap] : (N N') = (N' N) if N' <= N .
|