mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-26 21:23:53 +03:00
7 lines
110 B
Idris
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 }
|