After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 589894 - List interface enhancement
List interface enhancement
Status: RESOLVED FIXED
Product: libgee
Classification: Platform
Component: general
git master
Other All
: Normal enhancement
: 0.3
Assigned To: Tomaz Vajngerl
libgee-maint
Depends on:
Blocks:
 
 
Reported: 2009-07-27 15:42 UTC by Tomaz Vajngerl
Modified: 2009-07-31 16:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
0002-Added-to-list-interface-methods-first-last-insert_al.patch (14.99 KB, patch)
2009-07-27 15:44 UTC, Tomaz Vajngerl
none Details | Review

Description Tomaz Vajngerl 2009-07-27 15:42:57 UTC
New methods for list:
 - first - first element is returned
 - last - last element is returned
 - insert_all - insert into list a collection at specified index
Comment 1 Tomaz Vajngerl 2009-07-27 15:44:28 UTC
Created attachment 139290 [details] [review]
0002-Added-to-list-interface-methods-first-last-insert_al.patch
Comment 2 Didier "Ptitjes" 2009-07-30 09:44:12 UTC
Tomaz,

ReadOnlyList should just called the methods of the wrapped list (_list.first () and _list.last ())

Also, I would prefer that you split that in two commits:
- One introducing AbstractList
- Another enhancing the List interface and introducing the implementations

If you are OK with that and don't have time to do it, I can do it.
Comment 3 Didier "Ptitjes" 2009-07-31 16:20:03 UTC
commit d74a1a126c947026898e7e7446e3ef8b9637a16c
Author: Toma<C5><BE> Vajngerl <quikee@gmail.com>
Date:   Sun Jul 26 12:33:49 2009 +0200

    Add List.first|last|insert_all methods and AbstractList implementations
    
    Fixes bug 589894.