hyper-literate/pkgs/scribble-pkgs/scribble-test/tests/scribble/docs/manual-ex.rkt
Neil Toronto d49e86f13e Added #:value keyword to defproc', defparam', `defthing' and related
Also fixed `defproc*' example

original commit: 9ca8c71aadebf741c6ac799b7b78ecf2113d4b16
2014-01-11 17:41:15 -07:00

23 lines
407 B
Racket

#lang racket/base
(require (for-syntax racket/base))
(provide (all-defined-out))
(define (f) 10)
(define (g x y) (void))
(define (h x #:y y) (void))
(define (i x #:y [y #f]) (void))
(define (j) (void))
(define-syntax-rule (m x) 'x)
(define-syntax n (lambda (stx) #`(quote #,stx)))
(define p (make-parameter 10))
(define q (make-parameter #f))
(define-struct pt (x y))
(struct pn (x y))
(define v 10)