lp-ex.rkt (322B)
1 #lang scribble/lp2 2 @(require scribble/manual) 3 4 Literate programs have chunks of code, like this one: 5 6 @chunk[<f> 7 (define (f x) 8 <fs-body>)] 9 10 and this one: 11 12 @chunk[<fs-body> 13 (* x x)] 14 15 that, when assembled, produce a complete program, in this case: 16 17 @racketblock[(define (f x) 18 (* x x))]