Changeset 40137 in project


Ignore:
Timestamp:
05/25/21 13:28:04 (4 months ago)
Author:
Idiomdrottning
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/5/brev-separate

    r40133 r40137  
    187187⇒ (2 blue)
    188188
    189 {{call-table}} takes a keyword argument, {{default:}}, to set the default response for unknown keys.
    190 
    191 There is also {{call-table*}} which by default cons its values to a list instead of replacing them.
    192 It takes three keyword arguments. {{proc:}} which defaults to {{cons}},
    193 initial which defaults to {{'()}}, and unary which defaults to {{#f}}.
     189{{call-table}} takes two optional keyword argument, {{default:}}, to set
     190the default response for unknown keys, and {{seed:}} which can be a
     191hash-table or an alist, and defaults to empty.
     192
     193There is also {{call-table*}} which by default cons its values to a list
     194instead of replacing them. It takes four keyword arguments. {{proc:}}
     195which defaults to {{cons}}, initial which defaults to {{'()}}, and unary
     196which defaults to {{#f}}, and {{seed:}} as above.
    194197
    195198Both versions of call-table lets you access the underlying hash-table
Note: See TracChangeset for help on using the changeset viewer.