PasteRack.org
Paste # 68822
2022-01-14 16:53:07

Fork as a new paste.

Paste viewed 118 times.


Embed:

Using ~a as a formatting sublanguage

  1. #lang racket
  2. (define name "Fred")
  3. (define age 99)
  4. (define kids '(Sally Susan Bob))
  5. (~a "Hello, "name"! You are "age" years old, and your children's names are "(~j "," ", and" kids-names ~a)".")

=>

~j: undefined;

 cannot reference an identifier before its definition

  in module: 'm