diff paper/src/AgdaRecordProj.agda @ 52:fb42478e4c96

Writing agda description
author atton <atton@cr.ie.u-ryukyu.ac.jp>
date Tue, 31 Jan 2017 16:41:36 +0900
parents
children 10a550bf7e4a
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/paper/src/AgdaRecordProj.agda	Tue Jan 31 16:41:36 2017 +0900
@@ -0,0 +1,8 @@
+getX : Point -> Nat
+getX p = Point.get p
+
+getY : Point -> Nat
+getY record { x = a ; y = b} = b
+
+xPlus5 : Point -> Point
+xPlus5 p = record p { x = (Point.x p) + 5}