Idris2/tests/idris2/reg032/recupdate.idr
Edwin Brady 58359c2d01 Leave implicit record fields alone on update
Unless an explicit update is given
2020-07-07 22:36:15 +01:00

7 lines
110 B
Idris

record R (a : Type) where
constructor MkR
x : a
rmap : (a -> b) -> R a -> R b
rmap f = record { x $= f }