mirror of
https://github.com/Dummi26/mers.git
synced 2025-03-10 22:37:46 +01:00
11 lines
276 B
Plaintext
11 lines
276 B
Plaintext
![]() |
list := [1 2 3 4 5 6 7 8 9 ...]
|
||
|
|
||
|
// calling get on an &list will get a reference
|
||
|
&list.get(2).assume1() = 24
|
||
|
// calling get on a list will get a value
|
||
|
should_not_be_changeable := list.get(3).assume1()
|
||
|
&should_not_be_changeable = 24
|
||
|
|
||
|
list.get(2) == [24]
|
||
|
&& list.get(3) != [24]
|