let list1 equal '((1 2) (3 4))
also let env be nil
why does (acons (car (car list1)) (cdr (car list1)) env) return ((1 2))
while (acons 1 2 env) return ((1 . 2))
I need the first line to also return ((1 . 2))
let list1 equal '((1 2) (3 4))
also let env be nil
why does (acons (car (car list1)) (cdr (car list1)) env) return ((1 2))
while (acons 1 2 env) return ((1 . 2))
I need the first line to also return ((1 . 2))
Copyright © 2021 Jogjafile Inc.
See the definition of
acons:If
list1is result of(list (list 1 2) (list 3 4)), then:(car (car list1))is1(cdr (car list1))is(2)And
(cons 1 (list 2))is(1 2).You can use
firstandsecond: