Varrays : Yet another arrays lib
script karma |
Rating 0/0,
Downloaded by 66 |
created by |
Marc Chantreux |
|
script type |
utility |
|
description |
Yet another arrays lib, this one uses curly braces names to manage differents elements ...
|
|
install details |
just copy it in your macros directory and call it by :
runtime macros/varray.vim |
|
script versions (upload new version)
Click on the package to download.
varrays.zip |
0.50 |
16-Dec-2002 |
6.0 |
Marc Chantreux |
being late to release a new stable version, i realease a devel. version
Known bug :
Confusion beetween 0 and 1 element in the array. i've found
a solution to fix it. Just have to write it. Effect : length doesn't
work correctly pop is dangerous when you're near 1 element
Changes :
- New internal ... little bit slower but will be more efficient with
shift, unshift and delete internal elements
- dictionary file ... usefull for progammers
- Added functions :
VARRAY_new()
creates a new array and return a 'pointer' to it. array is
stored as a internal value for varray script so you can choose yourself
your scope.
VARRAY_push(array_pnt,[list of elements])
push the list of elements at the top of the array
VARRAY_split(array_pnt,separator,string)
split the string according to the separator and push all the found elements to
the array
VARRAY_pop(array_pnt)
delete element at the top of the array and returns it
( WARNING : bugged for the moment)
VARRAY_length(array_pnt)
returns the length of the array
( WARNING : bugged for the moment)
VARRAY_elementAt(array_pnt,element)
returns the value of the element
VARRAY_setCursorAtElement(array_pnt,element)
set the cursor at element
VARRAY_setCursorAtBottom(array_pnt)
set the cursor at 1st element
VARRAY_setCursorAtTop(array_pnt)
set the cursor at 1st element
VARRAY_getCursor(array_pnt)
returns the value of the cursor (not the value of the element ! see
VARRAY_here )
VARRAY_exists(array_pnt)
tells if the cursor now points to a valid element. See varrays_exemples
VARRAY_here
returns the value of the element under the cursor
VARRAY_down(array_pnt)
returns the element under the cursor and decrements the cursor
VARRAY_up(array_pnt)
returns the element under the cursor and increments the cursor
VARRAY_clean(array_pnt)
delete all the elements of the array
VARRAY_delete(array_pnt)
delete the array itself
VARRAY_getInternal(array_pnt,internal)
debbugging function to see an internal value
VARRAY_dump
debbugging function that dumps the array with echo
|
varrays.vim |
0.40 |
10-Dec-2002 |
6.0 |
Marc Chantreux |
Initial upload |
|