Reformat NBI to standardized format
[osm/NBI.git] / osm_nbi / utils.py
index aac3d90..73fc40f 100644 (file)
@@ -31,6 +31,14 @@ def find_in_list(the_list, condition_lambda):
         return None
 
 
+def filter_in_list(the_list, condition_lambda):
+    ret = []
+    for item in the_list:
+        if condition_lambda(item):
+            ret.append(item)
+    return ret
+
+
 def find_index_in_list(the_list, condition_lambda):
     for index, item in enumerate(the_list):
         if condition_lambda(item):