Skip to content

Commit

Permalink
[lua] remove extra semicolon from inline PairTools code
Browse files Browse the repository at this point in the history
  • Loading branch information
jdonaldson committed May 21, 2020
1 parent 27c263e commit f61a0da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions std/lua/PairTools.hx
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ class PairTools {

public static function ipairsMap<A, B>(table:Table<Dynamic, A>, func:Int->A->B):Table<Int, B> {
var ret:Table<Int, B> = Table.create();
untyped __lua__("for i,v in _G.ipairs(table) do ret[i] = func(i,v) end;");
untyped __lua__("for i,v in _G.ipairs(table) do ret[i] = func(i,v) end");
return ret;
}

public static function pairsMap<A, B, C>(table:Table<A, B>, func:A->B->C->C):Table<A, C> {
var ret:Table<A, C> = Table.create();
untyped __lua__("for k,v in _G.pairs(table) do ret[k] = func(k,v) end;");
untyped __lua__("for k,v in _G.pairs(table) do ret[k] = func(k,v) end");
return ret;
}

Expand Down

0 comments on commit f61a0da

Please sign in to comment.