Task

Demonstrate any means your language has to prevent the modification of values, or to create objects that cannot be modified after they have been created.




iex(1)> x = 10          # bind
10
iex(2)> 10 = x          # Pattern matching
10
iex(3)> x = 20          # rebound
20
iex(4)> ^x = 10         # pin operator ^
** (MatchError) no match of right hand side value: 10
