view final_pre/src/AgdaRecordProj.agda @ 7:28f900230c26

add final_pre
author ryokka
date Mon, 19 Feb 2018 23:32:24 +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}