Tagged as challenge
Written on 2018-01-30
Create a procedure called set-if!
such that
(set-if! <predicate> <symbol> <value>)
means that <symbol>
is not set to <value>
if <predicate>
is not true.
Follow up questions:
Why can't this be a function in most languages?
What are the subtlties of the semantics of this? What behavior is not defined by the above?