Browse Source

Update Lambda.hx

Mark Knol 6 years ago
parent
commit
c6650732de
1 changed files with 1 additions and 1 deletions
  1. 1 1
      std/Lambda.hx

+ 1 - 1
std/Lambda.hx

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