1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-14 08:27:03 +03:00
juvix/tests/positive/Operators.juvix
janmasrovira 803d2008d9
remove ≔ from the language and replace it by := (#1563)
* remove ≔ from the language and replace it by :=

* revert accidental changes in juvix input mode

* update stdlib submodule

* rename ℕ by Nat in the tests and examples

* fix shell tests
2022-09-30 10:55:32 +10:00

16 lines
292 B
Plaintext

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);
end;