# Re: [tlaplus] Constant conversion into Set

I am new in tla+, I want to convert

Z='somevalue'

Into

S= {'s','o','m','e','v','a','l','u','e'}

This is the only conversion I want or can anyone suggest how to split values in tla+

Thanks

On Sun, Jun 23, 2019, 6:17 PM Stephan Merz <stephan.merz@xxxxxxxxx> wrote:
Hello,

I find it hard to understand your question: since TLA+ is based on Zermelo-Fraenkel set theory, formally all values are sets (although it is easier to think of objects such as numbers, strings or functions as being separate entities since we don't know which elements they contain when considered as sets). There is no need to "convert" constants into sets.

For the rest, the syntax that you use is not that of TLA+, which doesn't help me understand your problem.

May I suggest that you study the introductory material about TLA+ [1,2] and come back when you have precise questions?

Thank you,
Stephan

On 22 Jun 2019, at 20:21, MK Bug <android.ruba@xxxxxxxxx> wrote:

Please share how to convert a constant into a set.

For Eaxample:

Constant A    ----Contains value 'ABCnma12'

Set B {'A','B','C','n','m','a','1','2'}

Regards,
Malaika

--
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.

--
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.