More array tests

This commit is contained in:
Bruce Hill 2024-03-17 12:49:28 -04:00
parent 46decc9232
commit 341087026c

View File

@ -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]