--
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+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tlaplus/ddbdce3d-9339-44c2-98f3-58fbdf2b944c%40googlegroups.com.
You could write something likeSelectSeq(seq, LAMBDA x : x # item)to obtain a sequence with all occurrences of `item' removed. However, it sounds a little strange to me that you model a queue where the order of elements matters while duplicates are eliminated. If the order is unimportant as well, it would be simpler to use a set.Regards,
Stephan
On 26 May 2020, at 05:18, diaoz...@hotmail.com wrote:
Dear all,I'm writing a TLA program to process a message queue whlle I must remove a duplicate item from the sequence when a new message is added to the message queue. How could I do this with TLA module? Or I must write a function to deal with it?ThanksRegardsDiao Zegnqi.--
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 tla...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tlaplus/ddbdce3d-9339-44c2-98f3-58fbdf2b944c%40googlegroups.com.
You could write something likeSelectSeq(seq, LAMBDA x : x # item)to obtain a sequence with all occurrences of `item' removed. However, it sounds a little strange to me that you model a queue where the order of elements matters while duplicates are eliminated. If the order is unimportant as well, it would be simpler to use a set.Regards,
Stephan
On 26 May 2020, at 05:18, diaoz...@hotmail.com wrote:
Dear all,I'm writing a TLA program to process a message queue whlle I must remove a duplicate item from the sequence when a new message is added to the message queue. How could I do this with TLA module? Or I must write a function to deal with it?ThanksRegardsDiao Zegnqi.--
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 tla...@googlegroups.com.