PasteRack.org
Paste # 36080
2022-05-06 16:44:43

Fork as a new paste.

Paste viewed 1506 times.


Embed:

  1. #lang racket
  2.  
  3. (cons '(1 2) 3)
  4. (cons '(1 2) '(3))
  5. (append '(1 2) 3)
  6. (append '(1 2) '(3))

=>

'((1 2) . 3)

'((1 2) 3)

'(1 2 . 3)

'(1 2 3)