mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-20 18:21:47 +03:00
20 lines
188 B
Idris
20 lines
188 B
Idris
record Foo where
|
|
constructor MkFoo
|
|
a : Nat
|
|
b : Nat
|
|
|
|
foo1 : Foo
|
|
foo1 = MkFoo
|
|
{ a = 1
|
|
, a = 2
|
|
, b = 3
|
|
}
|
|
|
|
foo2 : Foo
|
|
foo2 =
|
|
{ a := 3
|
|
, a := 4
|
|
, b := 2
|
|
, b := 1
|
|
} foo1
|