Re: g_list_prepend() vs g_list_append()



On 8 Sep 2002, Archit Baweja wrote:

> > With:
> > 
> >      g_list_reverse();
> >      g_list_prepend(), ...;
> >      g_list_reverse();
>
> Maybe we can implement g_list_append() as a macros which calls the 3 for us?

g_list_reverse() is O(n) so what would that buy us?

-- 
   .--= ULLA! =----------------------.   `We are not here to give users what
   \    http://cactus.rulez.org       \   they want'  -- RMS, at GUADEC 2001
    `-----= cactus cactus rulez org =--'
Borg spreadsheet: Locutus 1-2-3




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]