[Vala] customizing the equal_func on arraylist



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]