This is .mod (model file)
tuple TDayPair{
string day1;
string day2;
}
{TDayPair} DAYS={<"Mon","Tue">,<"Thurs","Fri">};
int a[DAYS]= ...;
execute {
writeln(a[<"Mon","Tue">]); //<--it gives syntax error here
}
This is .dat (data file)
a = #[
<"Mon","Tue">:1,
<"Thurs","Fri">:2,
]#;
It gives syntax error at the model file at writeln(a[<"Mon","Tue">]);
what's the issue here?