I am new in dafny and I encountered a problem when working with a set like this one:
var myset : set<(int, int)> := {(1, 10), (2, 20), (3, 20)};
- How can I get first pair into a variable? And then how can I access each value inside this pair?
- How can I add a pair to my myset ?
For arrays is working in this way : myarray[i].0 and myarray[i].1.