Mercurial > hg > Papers > 2019 > oshiro-thesis
view final_pre/src/AgdaRecordProj.agda @ 7:0e8b9646d43f
add final_pre
author | e155702 |
---|---|
date | Sun, 17 Feb 2019 05:39:59 +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}