mirror of
https://github.com/anoma/juvix.git
synced 2024-12-15 01:52:11 +03:00
2baad15a41
* Enables new function syntax in local let-declarations * Closes #2251
15 lines
231 B
Plaintext
15 lines
231 B
Plaintext
module Records2;
|
|
|
|
import Stdlib.Data.Nat.Base open;
|
|
|
|
type Pair (A B : Type) :=
|
|
| mkPair {
|
|
pfst : A;
|
|
psnd : B
|
|
};
|
|
|
|
main : Pair Nat Nat :=
|
|
let
|
|
p : Pair Nat Nat := mkPair 2 2;
|
|
in p @Pair{pfst := pfst + psnd};
|