Changeset 35742 in project


Ignore:
Timestamp:
07/05/18 02:26:18 (2 weeks ago)
Author:
kon
Message:

rel 1.1.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/symbol-utils

    r35127 r35742  
    1616A printname is the string form of a symbol.
    1717
    18 === unbound-value
     18=== symbol-value-utils
    1919
    20 <macro>(unbound-value) => #<unbound></macro>
     20==== Usage
    2121
    22 === unbound-value?
     22<enscript language=scheme>
     23(require-extension symbol-value-utils)
     24</enscript>
    2325
    24 <macro>(unbound-value? OBJ) => boolean</macro>
     26==== unbound-value
    2527
    26 === unbound?
     28<macro>(unbound-value) -> #<unbound></macro>
    2729
    28 <macro>(unbound? SYM) => boolean</macro>
     30==== unbound-value?
    2931
    30 === symbol-value
     32<macro>(unbound-value? OBJ) -> boolean</macro>
    3133
    32 <macro>(symbol-value SYM [DEF]) => *</macro>
     34==== unbound?
     35
     36<macro>(unbound? SYM) -> boolean</macro>
     37
     38==== symbol-value
     39
     40<macro>(symbol-value SYM [DEF]) -> *</macro>
    3341
    3442Returns {{SYM}} binding or {{DEF}} when unbound.
    3543
    36 === unspecified-value
     44==== unspecified-value
    3745
    38 <procedure>(unspecified-value) => #<unspecified></procedure>
     46<procedure>(unspecified-value) -> #<unspecified></procedure>
    3947
    40 === unspecified-value?
     48==== unspecified-value?
    4149
    42 <macro>(unspecified-value? OBJ) => boolean</macro>
     50<macro>(unspecified-value? OBJ) -> boolean</macro>
    4351
    44 === unspecified?
     52==== unspecified?
    4553
    46 <macro>(unspecified? OBJ) => boolean</macro>
     54<macro>(unspecified? OBJ) -> boolean</macro>
    4755
    48 === symbol->keyword
     56=== symbol-name-utils
    4957
    50 <procedure>(symbol->keyword SYM) => keyword</procedure>
     58==== Usage
     59
     60<enscript language=scheme>
     61(require-extension symbol-name-utils)
     62</enscript>
     63
     64==== symbol->keyword
     65
     66<procedure>(symbol->keyword SYM) -> keyword</procedure>
    5167
    5268''Note'' that {{keyword->symbol}} is just {{(string->symbol (symbol->string
    5369KWD))}}.
    5470
    55 === symbol-printname-details
     71==== symbol-printname-details
    5672
    57 <procedure>(symbol-printname-details SYM) => (string string)</procedure>
     73<procedure>(symbol-printname-details SYM) -> (string string)</procedure>
    5874
    5975Returns 2 values: the {{string}}, and any qualification prefix
    6076{{string}}, for {{SYM}}
    6177
    62 === symbol-printname=?
     78==== symbol-printname=?
    6379
    64 <procedure>(symbol-printname=? X Y) => boolean</procedure>
     80<procedure>(symbol-printname=? X Y) -> boolean</procedure>
    6581
    6682{{X}} & {{Y}} are {{symbol}}.
    6783
    68 === symbol-printname<?
     84==== symbol-printname<?
    6985
    70 <procedure>(symbol-printname<? X Y) => boolean</procedure>
     86<procedure>(symbol-printname<? X Y) -> boolean</procedure>
    7187
    7288{{X}} & {{Y}} are {{symbol}}.
    7389
    74 === symbol-printname-length
     90==== symbol-printname-length
    7591
    76 <procedure>(symbol-printname-length SYM) => integer</procedure>
     92<procedure>(symbol-printname-length SYM) -> integer</procedure>
    7793
    78 === max-symbol-printname-length
     94==== max-symbol-printname-length
    7995
    80 <procedure>(max-symbol-printname-length SYMS) => integer</procedure>
     96<procedure>(max-symbol-printname-length SYMS) -> integer</procedure>
    8197
    8298{{SYMS}} is a {{list}} of {{symbol}}.
    8399
    84 === make-qualified-symbol
     100=== symbol-qualified-utils
    85101
    86 <procedure>(make-qualified-symbol PREFIX NAME) => symbol</procedure>
     102==== Usage
     103
     104<enscript language=scheme>
     105(require-extension symbol-qualified-utils)
     106</enscript>
     107
     108==== make-qualified-symbol
     109
     110<procedure>(make-qualified-symbol PREFIX NAME) -> symbol</procedure>
    87111
    88112{{PREFIX}} & {{NAME}} are either {{symbol}} or {{string}}.
    89113
    90 === make-qualified-uninterned-symbol
     114==== make-qualified-uninterned-symbol
    91115
    92 <procedure>(make-qualified-uninterned-symbol PREFIX NAME) => symbol</procedure>
     116<procedure>(make-qualified-uninterned-symbol PREFIX NAME) -> symbol</procedure>
    93117
    94 === qualified-symbol?
     118==== qualified-symbol?
    95119
    96 <procedure>(qualified-symbol? SYM) => boolean</procedure>
     120<procedure>(qualified-symbol? SYM) -> boolean</procedure>
    97121
    98 === symbol->qualified-string
     122==== symbol->qualified-string
    99123
    100 <procedure>(symbol->qualified-string SYM) => string</procedure>
     124<procedure>(symbol->qualified-string SYM) -> string</procedure>
    101125
    102 === interned-symbol?
     126=== symbol-lolevel-utils
    103127
    104 <procedure>(interned-symbol? SYM) => boolean</procedure>
     128==== Usage
     129
     130<enscript language=scheme>
     131(require-extension symbol-lolevel-utils)
     132</enscript>
     133
     134==== interned-symbol?
     135
     136<procedure>(interned-symbol? SYM) -> boolean</procedure>
    105137
    106138
     
    119151== Version history
    120152
     153; 1.1.0 : Add {{symbol-name-utils}},  {{symbol-value-utils}},  {{symbol-qualified-utils}},  {{symbol-lolevel-utils}} modules.
    121154; 1.0.3 : Add types & better type checking.
    122155; 1.0.2 : Fix for ticket #630.
Note: See TracChangeset for help on using the changeset viewer.