I saw there are other questions about the dot "."
I followed but it didn't work for my code....
it's a part of code, the implementation is not focused to this symbol.
but output should be included this dot.
when I give input of two lists '(1 2 3) '(4 5)
my expected output => (1 . 4) (2 . 5)
I managed to get (1 4) (2 5)
just need to add "." in the middle.
Part of mycode
(cons (list (car lst1) (car lst2))
....
for the "." symbol , if I try
**trial-1**
(cons '(list (car lst1) (car lst2)) ...)
then the output : ((list (car lst1) (car lst2))
**trail-2**
(cons (list (car lst1) '. (car lst2)) ...)
then.. it says : illegal use of `.'
what are the rules to use the dot? any documents I can look at?
btw, I am using Racket(R5RS).
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…