Skip to content

Commit

Permalink
implemented eval function
Browse files Browse the repository at this point in the history
  • Loading branch information
Tonic-Box committed May 12, 2024
1 parent 1ff510c commit 1b8bdb7
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,14 @@ else if(function.getArgs().length == 1)
"Creates a new array with the given values", false
);

addMethod(methods, "eval",
ImmutableMap.of(
0, Pair.of("code", Type.STRING)
),
function -> {},
"Evaluates the code.", false
);

return methods;
}
}

0 comments on commit 1b8bdb7

Please sign in to comment.