wizardforcel / sicp-py-zh

:book:【译】UCB CS61a SICP Python
https://www.gitbook.com/book/wizardforcel/sicp-py/details
2.2k stars 333 forks source link

Part 3.5 lost the definition of calc_eval #5

Closed wangggong closed 6 years ago

wangggong commented 6 years ago

rt

Jztluo commented 6 years ago

my version

def calc_eval(exp)
  calc_apply(exp.operator, map(lambda o: calc_eval(o) if isinstance(o, Exp) else o, exp.operands))
end
wizardforcel commented 6 years ago

原书里就没有吧。

所有修改都是原书先修改,这边再修改。