Elixir, no round links?

I study Elixir, right up to chapter 7 of the PragProg book, and, thinking about immutability and other subjects, I thought it was not at all possible to create a circular link in Elixir Maps / Tuples / Lists, etc. Where A โ†’ B โ†’ C โ†’ A.

Without going into trying to trick the system, is that true?

+4
source share
1 answer

Due to the immutability, there is a problem with the chicken egg creating circulars. In fact, the Elixir does nothing to prevent this; he just goes out of the box unchanged.

. C A , A ; A , B, B ; B C, C, . .

Term * , Elixir .


* , , Term.

+9

Source: https://habr.com/ru/post/1663584/


All Articles