What is the “return” in scheme?
问题 I am trying to translate some python code to scheme. def test(x): if x > 1: do something if x > 10: return if x == 4: do something test(11) I did not find the "return" in scheme. I want to quit from the test function when x >10. How can I simulate the "return" in scheme? (I am using guile) Thanks 回答1: In Scheme there isn't an explicit return keyword - it's a lot simpler than that, the value of the last expression in a sequence of expressions is the one that gets returned. For example, your