Skip to content

Instantly share code, notes, and snippets.

@kwannoel
Last active April 6, 2021 07:48
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save kwannoel/ffd05b1c53469ade10da6ab4af555c0b to your computer and use it in GitHub Desktop.
#lang racket
(define a 1)
(define b 2)
; quote
'(+ a b) ; '(+ a b)
; quasiquote
`(+ a ,b) ; '(+ a 2)
; nested quasi-quote expr
(define a 1)
(define b 2)
`(a (+ ,b 0)) ; '(a (+ 2 0))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment