PasteRack.org
Paste # 6371
2024-04-09 15:28:39

Forked from paste # 89554.

Fork as a new paste.

Paste viewed 406 times.


Embed:

  1. #lang racket
  2. (pair? (list 1 2 3))
  3. (pair? (list 2))
  4. (cons 4 3 4 5)
  5. (list* 4 3 4 5)

=>

#t

#t

cons: arity mismatch;

 the expected number of arguments does not match the given

number

  expected: 2

  given: 4

'(4 3 4 . 5)