view final_main/src/AgdaRecord.agda @ 2:93d26c4576d3

add picture
author ryokka
date Thu, 01 Feb 2018 01:17:55 +0900
parents
children
line wrap: on
line source

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

makePoint : Nat -> Nat -> Point
makePoint a b = record { x = a ; y = b }