annotate paper/src/AgdaRecord.agda @ 69:bda11534296f

Update pdf
author atton <atton@cr.ie.u-ryukyu.ac.jp>
date Sat, 04 Feb 2017 16:34:14 +0900
parents fb42478e4c96
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
52
fb42478e4c96 Writing agda description
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 record Point : Set where
fb42478e4c96 Writing agda description
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 field
fb42478e4c96 Writing agda description
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 x : Nat
fb42478e4c96 Writing agda description
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 y : Nat
fb42478e4c96 Writing agda description
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
5
fb42478e4c96 Writing agda description
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 makePoint : Nat -> Nat -> Point
fb42478e4c96 Writing agda description
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 makePoint a b = record { x = a ; y = b }