annotate Paper/src/AgdaRecord.agda.replaced @ 0:c59202657321

init
author soto <soto@cr.ie.u-ryukyu.ac.jp>
date Tue, 02 Nov 2021 06:55:58 +0900
parents
children 339fb67b4375
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
soto <soto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 record Point : Set where
soto <soto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 field
soto <soto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 x : Nat
soto <soto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 y : Nat
soto <soto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
5
soto <soto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 makePoint : Nat @$\rightarrow$@ Nat @$\rightarrow$@ Point
soto <soto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 makePoint a b = record { x = a ; y = b }