Browse Source

[std] fix Lambda.filter signature

closes #7420
Simon Krajewski 7 năm trước cách đây
mục cha
commit
79e6d2ca47
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      std/Lambda.hx

+ 1 - 1
std/Lambda.hx

@@ -166,7 +166,7 @@ class Lambda {
 		If `it` is empty, the result is the empty Array even if `f` is null.
 		Otherwise if `f` is null, the result is unspecified.
 	**/
-	public static function filter<A>( it : Array<A>, f : A -> Bool ) {
+	public static function filter<A>( it : Iterable<A>, f : A -> Bool ) {
 		return [for (x in it) if (f(x)) x];
 	}