compute

fun compute(expr: String): Any

Evaluates the given expression and returns the result as Any.

Return

the result of evaluating the expression

Parameters

expr

the expression to evaluate