annotate paper/src/AgdaRecordProj.agda.replaced @ 2:c7acb9211784

add code, figure. and paper fix content
author ryokka
date Mon, 27 Jan 2020 20:41:36 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
c7acb9211784 add code, figure. and paper fix content
ryokka
parents:
diff changeset
1 getX : Point @$\rightarrow$@ Nat
c7acb9211784 add code, figure. and paper fix content
ryokka
parents:
diff changeset
2 getX p = Point.x p
c7acb9211784 add code, figure. and paper fix content
ryokka
parents:
diff changeset
3
c7acb9211784 add code, figure. and paper fix content
ryokka
parents:
diff changeset
4 getY : Point @$\rightarrow$@ Nat
c7acb9211784 add code, figure. and paper fix content
ryokka
parents:
diff changeset
5 getY record { x = a ; y = b} = b
c7acb9211784 add code, figure. and paper fix content
ryokka
parents:
diff changeset
6
c7acb9211784 add code, figure. and paper fix content
ryokka
parents:
diff changeset
7 xPlus5 : Point @$\rightarrow$@ Point
c7acb9211784 add code, figure. and paper fix content
ryokka
parents:
diff changeset
8 xPlus5 p = record p { x = (Point.x p) + 5}