Mercurial > hg > Papers > 2018 > ryokka-sigos
view Paper/src/AgdaRecordProj.agda @ 1:bf2887cd22c1
fix Paper
author | ryokka |
---|---|
date | Fri, 13 Apr 2018 19:47:50 +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}