PasteRack.org
Paste # 14940
2019-02-17 10:43:37

Fork as a new paste.

Paste viewed 333 times.


Embed:

input returning print function

  1. #lang racket
  2.  
  3. (define (rprintf x)  (printf x) (x))
  4.  
  5. (display (rprintf "Hello fam"))

=>

Hello fam

application: not a procedure;

 expected a procedure that can be applied to arguments

  given: "Hello fam"

  arguments...: [none]