More array tests
This commit is contained in:
parent
46decc9232
commit
341087026c
@ -50,11 +50,15 @@ if yes
|
||||
if yes
|
||||
>> [10*i for i in 5]
|
||||
= [10, 20, 30, 40, 50]
|
||||
// if yes
|
||||
// >> arr := @[10, 20]
|
||||
// >> copy := arr[]
|
||||
// >> arr:insert(30)
|
||||
// >> arr
|
||||
// = @[10, 20, 30]
|
||||
// >> copy
|
||||
// = [10, 20]
|
||||
|
||||
>> [i*10 for i in 5]
|
||||
= [10, 20, 30, 40, 50]
|
||||
|
||||
if yes
|
||||
>> arr := @[10, 20]
|
||||
>> copy := arr[]
|
||||
>> arr:insert(30)
|
||||
>> arr
|
||||
= @[10, 20, 30]
|
||||
>> copy
|
||||
= [10, 20]
|
||||
|
Loading…
Reference in New Issue
Block a user