examples.txt (1165B)
1 Example: 2 3 > (+ 1 2) 4 3 5 6 Examples: 7 8 > (+ 3 4) 9 7 10 > (string-append "5" 11 "6") 12 "56" 13 14 > (+ 2 3) 15 5 16 17 Another example: 18 19 > (+ 2 4) 20 6 21 22 Examples: 23 24 > (+ 2 5) 25 7 26 > (* 3 4) 27 12 28 29 Examples: 30 31 (+ 2 6) 32 8 33 (* 3 5) 34 15 35 36 "Just the result." 37 38 Example: 39 40 > (syntax-line (quote-syntax here)) 41 45 42 43 "don't show the result" 44 45 #lang racket/base 46 (define x "don't show") 47 "the result" 48 49 Example: 50 51 > (/ 1 0) 52 /: division by zero 53 54 Example: 55 56 > (+ 1 2) (* 3 4) 57 12 58 59 Example: 60 61 > (+ 1 2) 62 3 63 64 Example: 65 66 > (/ 1 0) 67 +inf.0 68 69 Example: 70 71 > "(/ 1 0)" 72 (/ 1 0) 73 74 Example: 75 76 > "(/ 1 0)" 77 getting +inf.0 78 (/ 1 0) 79 80 Example: 81 82 > "(/ 1 0)" 83 getting +inf.0 84 oops 85 (/ 1 0) 86 87 Example: 88 89 > (/ 100 0) 90 getting +inf.0 91 oops 92 (/ 1 0) 93 94 Example: 95 96 > (/ 100 0) 97 getting +inf.0 98 oops 99 (/ 1 0) 100 '= 101 102 Example: 103 104 (define x 42)