view paper/src/AgdaRecordProj.agda @ 64:10a550bf7e4a

Mini fixes with ryokka-san
author atton <atton@cr.ie.u-ryukyu.ac.jp>
date Fri, 03 Feb 2017 14:49:58 +0900
parents fb42478e4c96
children
line wrap: on
line source

getX : Point -> Nat
getX p = Point.x p

getY : Point -> Nat
getY record { x = a ; y = b} = b

xPlus5 : Point -> Point
xPlus5 p = record p { x = (Point.x p) + 5}