Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
19
Task/Arrays/Vim-Script/arrays.vim
Normal file
19
Task/Arrays/Vim-Script/arrays.vim
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
" Creating a dynamic array with some initial values
|
||||
let array = [3, 4]
|
||||
|
||||
" Retrieving an element
|
||||
let four = array[1]
|
||||
|
||||
" Modifying an element
|
||||
let array[0] = 2
|
||||
|
||||
" Appending a new element
|
||||
call add(array, 5)
|
||||
|
||||
" Prepending a new element
|
||||
call insert(array, 1)
|
||||
|
||||
" Inserting a new element before another element
|
||||
call insert(array, 3, 2)
|
||||
|
||||
echo array
|
||||
Loading…
Add table
Add a link
Reference in a new issue