view paper/src/AgdaRecordProj.agda.replaced @ 2:c7acb9211784

add code, figure. and paper fix content
author ryokka
date Mon, 27 Jan 2020 20:41:36 +0900
parents
children
line wrap: on
line source

getX : Point @$\rightarrow$@ Nat
getX p = Point.x p

getY : Point @$\rightarrow$@ Nat
getY record { x = a ; y = b} = b

xPlus5 : Point @$\rightarrow$@ Point
xPlus5 p = record p { x = (Point.x p) + 5}