2 ms·
Instead of this evaluation notation: (list (list 1 2) nil) -> (list (1 2) nil) -> (list (1 2) ()) -> ((1 2) ()) we write for example: (li
by lispm 11y ago
Instead of this evaluation notation:
(list (list 1 2) nil)
-> (list (1 2) nil)
-> (list (1 2) ())
-> ((1 2) ())
we write for example:
(list (list 1 2) nil)
-> (list {(1 2)} nil)
-> (list {(1 2)} {()})
-> {((1 2) ())}
Use curly brackets to identify which arguments have been evaluated to values.
See for example:
http://www.cs.uml.edu/~dimock/courses/opl/Handouts/TheSubstitutionModel.pdf http://www.cs.uml.edu/~dimock/courses/opl/Handouts/TheSubsti...