[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tlaplus] Creating sets with dependencies between fields


How do i create a variable whose fields depend upon each other like:
set of all files whose id is in range 1..MaxFileID and originalFileIds is a set whose value is id.

I tried `self.<field_name>` i.e. self.id and it did n't work.

------ MODULE abc -----------

(*-- algorithm some

    files = [id: 1..MaxFileID, originalFileIds: {}] \* using originalFildIds: {{id}} does not work.

end alorightm;*)


You received this message because you are subscribed to the Google Groups "tlaplus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tlaplus+unsubscribe@xxxxxxxxxxxxxxxx.
To view this discussion on the web visit https://groups.google.com/d/msgid/tlaplus/6aef4a17-22d5-4b4a-9eca-039c87cd24cbn%40googlegroups.com.