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

Re: [tlaplus] How to convert a Sequences to a set efficiently



Hi The Anh,

if you want to construct the set of the elements (i.e., the co-domain) of a sequence you can define

Range(s) == { s[i] : i \in DOMAIN s }

Of course, you lose the information on the order and the multiplicity of the elements in the original sequence.

Hope this helps,
Stephan

On 5 Jun 2019, at 14:12, the anh pham <theanh2304@xxxxxxxxx> wrote:

Dear all,

Does anyone know how to convert a Sequences to a Set effectively or/and quickly or/and simply?

Thank you very much. 
Best regards,
TA

--
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 post to this group, send email to tlaplus@xxxxxxxxxxxxxxxx.
Visit this group at https://groups.google.com/group/tlaplus.
To view this discussion on the web visit https://groups.google.com/d/msgid/tlaplus/903b7595-fab3-4547-805a-56a494757bfa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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 post to this group, send email to tlaplus@xxxxxxxxxxxxxxxx.
Visit this group at https://groups.google.com/group/tlaplus.
To view this discussion on the web visit https://groups.google.com/d/msgid/tlaplus/0585E81D-7EFD-4FC4-9E57-6EDCA6D70F19%40gmail.com.
For more options, visit https://groups.google.com/d/optout.