Cons element to list vs cons list to element in Scheme
The primitive cons simply sticks together two things, the fact that some of those things are considered lists is incidental. For instance, this works and creates a pair (also known as a cons cell): (cons 1 2) => ‘(1 . 2) ; a pair Now, if the second argument to cons happens to be a … Read more