[slang-users] SLANGFUN and arrays .....
Ben Duncan
ben at versaccounting.com
Wed Jul 6 12:46:14 EDT 2005
Now, If we can store these in a "keyed" file out to disk, in a multi user
mode, we WOULD have a PICK/XML Native data file manager for S-lang and ALL
my current worries would be solved ;-> ....
John E. Davis wrote:
> Paul Boekholt <p.boekholt at hetnet.nl> wrote:
>
>>Or use a list. From the manual:
>
>
> Right. One advantage of the list over the array is that an element
> may be easily inserted/appended at any position using the list_insert
> and list_append functions. Elements may be removed using the
> list_delete and list_pop functions.
>
> At the moment, lists do not support support "slices", i.e., one cannot
> use
>
> even_elements = list[[0::2]];
> odd_elements = list[[1::2]];
>
> to create lists from the even and odd elements of the list. If you
> need such a feature, then an array may be more appropriate.
> Eventually, lists will support the slicing operation.
>
> --John
>
> _______________________________________________
> To unsubscribe, visit http://jedsoft.org/slang/mailinglists.html
>
--
Ben Duncan - VersAccounting Software LLC 336 Elton Road Jackson MS, 39212
"Never attribute to malice, that which can be adequately explained by stupidity"
- Hanlon's Razor
More information about the slang-users-l
mailing list