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

[tlaplus] recursion



I have a sequence, which is a set of records. The records include three parts: oldVal, newVal and Boolean value. Now I need to traverse the sequence. When I traverse the record a, I need to find the Boolean value of the record B closest to a as true. If the Boolean value of a is true, you need to judge whether the a.oldVal is equal to the B.newVal. if so, traverse the next record, otherwise return false; If the Boolean value of a is false, you need to judge whether a.oldVal is not equal to B.newVal. if so traverse the next record, otherwise returns false。
How can such function be implemented using recursion in TLA+

question.jpg

--
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/ef8335ae-08d3-42dc-a8e6-b37c5ef3d595n%40googlegroups.com.