GNOME Bugzilla – Bug 776558
Add some more Traversable<G> query operations
Last modified: 2017-01-29 21:19:00 UTC
Created attachment 342558 [details] [review] Patch that adds some useful query operations to Traversable<G> The already existing Traversable<G> query operations are great for dealing with collections in a LINQ-like manner, so while using them I've misssed some useful ones from LINQ. The attached patch implements some of those.
Created attachment 343648 [details] [review] Add some more query operations for Traversable<G> * first_match (Predicate<G>) returns the first item that matches * any_match (Predicate<G>) checks if any element matches * all_match (Predicate<G>) checks if all elements match * max/min returns max/min value * order_by to perform ordering on any Traversable
Attachment 343648 [details] pushed as ed30714 - Add some more query operations for Traversable<G>