PasteRack.org
Paste # 47152
2023-03-11 13:18:23

Fork as a new paste.

Paste viewed 250 times.


Embed:

  1. #lang racket
  2.  
  3. (define (hello name)
  4.   (+ "Hello " name "! How are you?"))
  5.  
  6. (hello "Phil")

=>

+: contract violation

  expected: number?

  given: "Hello "