[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Difference between cons and dot
From: |
Heime |
Subject: |
Difference between cons and dot |
Date: |
Sat, 20 Apr 2024 12:20:20 +0000 |
Am adding an elemnt to an alist using either the cons or dot method.
Have noticed that with cons I do not need to call list
Thusly
(push (cons kfrz lnum) tema-lugar)
rather than
(push '(cons kfrz lnum) tema-lugar)
But with the dot method I have to use
(push '(kfrz . lnum) tema-lugar)
and not
(push (kfrz . lnum) tema-lugar)
What is the reason for this difference ?
- Difference between cons and dot,
Heime <=