annotate src/AgdaRecordProj.agda.replaced @ 1:73127e0ab57c

(none)
author soto@cr.ie.u-ryukyu.ac.jp
date Tue, 08 Sep 2020 18:38:08 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
soto@cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
1 getX : Point @$\rightarrow$@ Nat
soto@cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
2 getX p = Point.x p
soto@cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
3
soto@cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
4 getY : Point @$\rightarrow$@ Nat
soto@cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
5 getY record { x = a ; y = b} = b
soto@cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
6
soto@cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
7 xPlus5 : Point @$\rightarrow$@ Point
soto@cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
8 xPlus5 p = record p { x = (Point.x p) + 5}