Last active
December 11, 2022 04:38
-
-
Save MarioAriasC/649e7fde4a0953f4273d91ac1b66697f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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