Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 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