【发布时间】:2016-10-18 14:45:40
【问题描述】:
我想计算scheme中的算术表达式 运算符可以是div,mul,sub,add 对应/,*,-,+
(arith_eval exp)
Above exp can be a scheme number or (operator expr_1 expr_2)
Input : (arith_eval '(add (sub 8 2) 3))
Expected O/p : 9
我对计划很陌生,我不知道如何开始,请帮助我:(
【问题讨论】:
标签: functional-programming scheme racket evaluation arithmetic-expressions