Welcome to the CHICKEN Scheme pasting service

odd syntax problem added by Kooda on Tue Oct 31 20:05:52 2017

(define-for-syntax (translate str)
  (string-trim-right str (lambda (c) (or (eq? c #\!) (eq? c #\?)))))

(define-syntax foo
  (ir-macro-transformer
    (lambda (exp inject compare)
      `,(translate (symbol->string (inject (cadr exp)))))))

(print (foo bar!!))

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
What's the R5RS procedure to access the second element of a pair?
Visually impaired? Let me spell it for you (wav file) download WAV