瀏覽代碼

[std] fix Lambda.filter signature

closes #7420
Simon Krajewski 7 年之前
父節點
當前提交
79e6d2ca47
共有 1 個文件被更改,包括 1 次插入1 次删除
  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];
 	}