Mercurial > hg > Papers > 2018 > nozomi-master
annotate paper/src/AgdaRecordProj.agda @ 69:bda11534296f
Update pdf
author | atton <atton@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 04 Feb 2017 16:34:14 +0900 |
parents | 10a550bf7e4a |
children |
rev | line source |
---|---|
52 | 1 getX : Point -> Nat |
64
10a550bf7e4a
Mini fixes with ryokka-san
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
52
diff
changeset
|
2 getX p = Point.x p |
52 | 3 |
4 getY : Point -> Nat | |
5 getY record { x = a ; y = b} = b | |
6 | |
7 xPlus5 : Point -> Point | |
8 xPlus5 p = record p { x = (Point.x p) + 5} |