[Vala] customizing the equal_func on arraylist
- From: Lucas Deters <lucasdeters+vala gmail com>
- To: vala-list gnome org
- Subject: [Vala] customizing the equal_func on arraylist
- Date: Tue, 15 Dec 2009 00:23:46 -0200
Hello,
Can someone show me how to pass a customized "equal_func" function to the
arraylist?
All samples I found are working with strings , but I need an custom
comparator.
ArrayList<string> list = new ArrayList<string> ( str_equal );
ArrayList<MyClass> list = new ArrayList<MyClass> ( ??? );
Thanks,
Lucas
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]