comparison src/AgdaRecordProj.agda.replaced @ 1:73127e0ab57c

(none)
author soto@cr.ie.u-ryukyu.ac.jp
date Tue, 08 Sep 2020 18:38:08 +0900
parents
children
comparison
equal deleted inserted replaced
0:b919985837a3 1:73127e0ab57c
1 getX : Point @$\rightarrow$@ Nat
2 getX p = Point.x p
3
4 getY : Point @$\rightarrow$@ Nat
5 getY record { x = a ; y = b} = b
6
7 xPlus5 : Point @$\rightarrow$@ Point
8 xPlus5 p = record p { x = (Point.x p) + 5}