Mercurial > hg > Papers > 2020 > ryokka-master
view paper/src/AgdaRecordProj.agda.replaced @ 19:046b2b20d6c7 default tip
fix
author | ryokka |
---|---|
date | Mon, 09 Mar 2020 11:25:49 +0900 |
parents | c7acb9211784 |
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}