소스 검색

[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];
 	}