view paper/src/AgdaRecordProj.agda @ 90:f535393e4043

Add figure meta-hierarchy
author atton <atton@cr.ie.u-ryukyu.ac.jp>
date Thu, 09 Feb 2017 18:30:02 +0900
parents 10a550bf7e4a
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}