On 2/6/20 9:41 AM, John Duncan wrote:
The dotted pair syntax (a . b) refers to the car and cdr of a list.

I too had been scratching my head about the use of the dotted notation in the function documentation, but I just had a lightbulb. Since in a regular list, the cdr is the "tail", in an example like:

(let? sym 'any . prg)

..the dot is telling us that "prg" represents the "rest of the list" i.e. all the expressions that follow the (in this case) first three elements.

Thank you for your explanation, John.

-wilhelm


--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to