[DGD] mapping question
pete at ana.sk
pete at ana.sk
Wed Oct 10 17:00:41 CEST 2001
> Doesn't get any faster than this:
>
> int i, sz;
> mixed *ind, *val;
>
> sz = map_sizeof(map);
> ind = map_indices(map);
> val = map_values(map);
> for (i = 0; i < sz; i++) {
> /* Do whatever you want with the ind[i] and val[i] pair. */
> }
Yes thats usual way, but i want to do map[ind[i]] = someting in the
loop, and i was wondering if i can do somethig like map[some
sequential index] = something, cause im not interested in indices, i
just want to do something for each element, map index is
completely unimportant
Pete
_________________________________________________________________
List config page: http://list.imaginary.com/mailman/listinfo/dgd
More information about the DGD
mailing list