Skip to content

Instantly share code, notes, and snippets.

@MarioAriasC
Last active December 11, 2022 04:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MarioAriasC/649e7fde4a0953f4273d91ac1b66697f to your computer and use it in GitHub Desktop.
Save MarioAriasC/649e7fde4a0953f4273d91ac1b66697f to your computer and use it in GitHub Desktop.
private fun evalExpressions(arguments: List<Expression?>?, env: Environment): List<MObject?> =
arguments!!.map { argument ->
val evaluated = eval(argument, env)
if (evaluated.isError()) {
return listOf(evaluated)
}
evaluated
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment