view paper/src/AgdaRecord.agda.replaced @ 14:a63df15c9afc default tip

DONE
author soto <soto@cr.ie.u-ryukyu.ac.jp>
date Mon, 15 Feb 2021 23:36:39 +0900
parents 959f4b34d6f4
children
line wrap: on
line source

record Point : Set where
  field
    x : Nat
    y : Nat

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