bkyk8rc3zvpnsf5inmcqq4n3k98cv6hj-my-site-hyper-literate-git.test.suzanne.soy-0.0.1

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

manual.txt (4743B)


      1  (require "manual-ex.rkt") package: manual-test
      2 
      3 (f) -> integer?
      4 
      5 A function.
      6 
      7 (g x y) -> integer?
      8   x : void?        
      9   y : void?        
     10 
     11 A function with two arguments.
     12 
     13 (h x #:y y) -> integer?
     14   x : void?            
     15   y : void?            
     16 
     17 A “function” with a keyword argument.
     18 
     19 (i x [#:y y]) -> integer?
     20   x : void?              
     21   y : void? = (void)     
     22 
     23 A function with an optional keyword argument.
     24 
     25 (f) -> integer?
     26 
     27 A function, again, not a link target.
     28 
     29 (f) -> integer?
     30  = 10          
     31 
     32 A function, again, not a link target, documented to return 10.
     33 
     34 (f) -> integer? 
     35  = (define x 10)
     36    x            
     37 
     38 A function, again, not a link target, documented to return 10 using a
     39 definition.
     40 
     41 (g x) -> integer?
     42   x : void?      
     43 
     44 A “function,” again, not a link target.
     45 
     46 (j) -> void?
     47 
     48 Source is i, documents j.
     49 
     50 (f) -> integer? 
     51 (g x y) -> void?
     52   x : void?     
     53   y : void?     
     54 
     55 Functions, yet again.
     56 
     57 (m datum)
     58 
     59 A syntactic form.
     60 
     61 (m datum)
     62 
     63 A syntactic form, again.
     64 
     65 (m datum)
     66 
     67 A “macro,” again.
     68 
     69 (m datum)     
     70 (m same-datum)
     71 
     72 A “macro,” yet again.
     73 
     74 (m datum)
     75 
     76 Yet again.
     77 
     78 n
     79 
     80 An identifier form.
     81 
     82 n
     83 
     84 An identifier form, again.
     85 
     86 (m datum)
     87 Specification of m.
     88 
     89 (p) -> integer?
     90 (p k) -> void? 
     91   k : integer? 
     92 
     93 A parameter
     94 
     95 (p) -> integer?
     96 (p k) -> void? 
     97   k : integer? 
     98 
     99 A parameter, again.
    100 
    101 (p) -> integer?
    102 (p k) -> void? 
    103   k : integer? 
    104  = 10          
    105 
    106 A parameter, again, with a documented default value.
    107 
    108 (p) -> integer?
    109 (p k) -> void? 
    110   k : real?    
    111 
    112 A parameter, yet again.
    113 
    114 (p) -> integer?
    115 (p k) -> void? 
    116   k : real?    
    117  = 10          
    118 
    119 A parameter, yet again, with a documented default value.
    120 
    121 (q) -> boolean? 
    122 (q on?) -> void?
    123   on? : any/c   
    124 
    125 A boolean parameter.
    126 
    127 (q) -> boolean?       
    128 (q still-on?) -> void?
    129   still-on? : any/c   
    130 
    131 A boolean parameter, again.
    132 
    133 (q) -> boolean?       
    134 (q still-on?) -> void?
    135   still-on? : any/c   
    136  = #f                 
    137 
    138 A boolean parameter, again, with a documented default value.
    139 
    140 v : integer?
    141 
    142 A thing.
    143 
    144 v : integer?
    145 
    146 A thing, again.
    147 
    148 v : integer? = 10
    149 
    150 A thing, again, with a documented value.
    151 
    152 v : integer?                                         
    153  = 12345678901234567890123456789012345678901234567890
    154 
    155 A thing, again, with a documented value that’s too wide to fit on one
    156 line.
    157 
    158 (struct pt (x y)                     
    159     #:extra-constructor-name make-pt)
    160   x : real?                          
    161   y : real?                          
    162 
    163 A structure type with extra name.
    164 
    165 (struct pn (x y))
    166   x : real?      
    167   y : real?      
    168 
    169 A structure type.
    170 
    171 (struct pn (x y))
    172   x : real?      
    173   y : real?      
    174 
    175 A structure type, again.
    176 
    177 (struct pn (x y)  
    178     #:transparent)
    179   x : real?       
    180   y : real?       
    181 
    182 A transparent structure type, again.
    183 
    184 (struct pn (x y)  
    185     #:transparent)
    186   x : real?       
    187   y : real?       
    188 
    189 A transparent structure type, again.
    190 
    191 (struct pn (x y)
    192     #:prefab)   
    193   x : real?     
    194   y : real?     
    195 
    196 A prefab structure type, again.
    197 
    198 (struct pn (x y)          
    199     #:constructor-name pt)
    200   x : real?               
    201   y : real?               
    202 
    203 A structure type with name, again.
    204 
    205 (struct pn (x y)                
    206     #:extra-constructor-name pt)
    207   x : real?                     
    208   y : real?                     
    209 
    210 A structure type with extra name, again.
    211 
    212 (struct pt (x y)                    
    213     #:extra-constructor-name make-pt
    214     #:mutable)                      
    215   x : real?                         
    216   y : real?                         
    217 
    218 A mutable structure type with extra name, again.
    219 
    220 (struct a-struct-with-an-extremely-long-name-and-no-fields ()
    221     #:extra-constructor-name                                 
    222     make-a-struct-with-an-extremely-long-name-and-no-fields) 
    223 
    224 Used to raise error, taking car of empty fields list. Reported by Carlos
    225 Lopez, 2017-03-11.
    226 
    227  (require "manual-ex0.rkt")
    228 
    229  #lang "manual-ex0.rkt"
    230 
    231  #reader "manual-ex0.rkt"
    232 
    233 1. Sub2
    234 
    235  (require "manual-ex2.rkt")
    236 
    237 2. Sub2a
    238 
    239  (require "manual-ex2a.rkt")
    240 
    241 3. Sub3
    242 
    243  #lang "manual-ex3.rkt"
    244 
    245 4. Sub3a
    246 
    247  #lang "manual-ex3a.rkt"
    248 
    249 5. Sub4-5
    250 
    251  (require "manual-ex4.rkt")
    252  (require "manual-ex5.rkt")
    253 
    254 6. Sub4a-5a
    255 
    256  (require "manual-ex4a.rkt")
    257  (require "manual-ex5a.rkt")
    258 
    259 7. Sub6
    260 
    261  (load "manual-ex6.rkt")
    262 
    263 8. Sub6a
    264 
    265  (load "manual-ex6a.rkt")
    266 
    267 9. Sub7
    268 
    269  (require "manual-ex7.rkt")
    270 
    271 10. Sub7a
    272 
    273  (require "manual-ex7a.rkt")
    274 
    275 11. Sub8
    276 
    277  #reader "manual-ex8.rkt"
    278 
    279 12. Sub8a
    280 
    281  #reader "manual-ex8a.rkt"
    282 
    283 13. Sub8b
    284 
    285  #reader "manual-ex8b.rkt"