view final_main/src/AgdaRecordProj.agda @ 2:93d26c4576d3

add picture
author ryokka
date Thu, 01 Feb 2018 01:17:55 +0900
parents
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}