Quellcode durchsuchen

Update Lambda.hx

Mark Knol vor 6 Jahren
Ursprung
Commit
d5709f207a
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      std/Lambda.hx

+ 1 - 1
std/Lambda.hx

@@ -75,7 +75,7 @@ class Lambda {
 		The order of elements is preserved.
 		If `f` is null, the result is unspecified.
 	**/
-	public static inline function mapi<A, B>(it:Iterable<A>, f:(index:Int, item:B) -> B):Array<B> {
+	public static inline function mapi<A, B>(it:Iterable<A>, f:(index:Int, item:A) -> B):Array<B> {
 		var i = 0;
 		return [for (x in it) f(i++, x)];
 	}