mirror of
https://github.com/Dummi26/mers.git
synced 2025-03-10 22:37:46 +01:00
19 lines
444 B
Plaintext
19 lines
444 B
Plaintext
![]() |
type person [string int]
|
||
|
fn name(p person/&person) p.0
|
||
|
fn age(p person/&person) p.1
|
||
|
|
||
|
type village [[float float] string]
|
||
|
fn name(v village/&village) v.1
|
||
|
fn location(v village/&village) v.0
|
||
|
fn x_coordinate(v village/&village) v.0.0
|
||
|
fn y_coordinate(v village/&village) v.0.1
|
||
|
|
||
|
|
||
|
|
||
|
customer := ["Max M.", 43]
|
||
|
home_town := [[12.3, 5.09], "Maxburg"]
|
||
|
|
||
|
customer.name() == "Max M."
|
||
|
&& home_town.name() == "Maxburg"
|
||
|
&& home_town.location() == [12.3, 5.09]
|