1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-15 01:52:11 +03:00
juvix/tests/positive/Operators.mjuvix

16 lines
295 B
Plaintext
Raw Normal View History

module Operators;
infixl 5 + ;
axiom + : Type → Type → Type;
plus : Type → Type → Type;
plus ≔ (+);
plus2 : Type → Type → Type → Type;
plus2 a b c ≔ a + b + c;
plus3 : Type → Type → Type → Type → Type;
plus3 a b c d ≔ (+) (a + b) ((+) c d);
2022-04-04 18:44:08 +03:00
end;