Changeset 35132 in project


Ignore:
Timestamp:
02/16/18 22:20:01 (10 months ago)
Author:
kon
Message:

fix string->interpolation -> string-interpolate , add example

File:
1 edited

Legend:

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

    r35131 r35132  
    228228</enscript>
    229229
    230 ==== string-interpolation
    231 
    232 <procedure>(string-interpolation STR [eval-tag: EVAL-TAG] [eval-env: EVAL-ENV]) => string</procedure>
     230==== string-interpolate
     231
     232<procedure>(string-interpolate STR [eval-tag: EVAL-TAG] [eval-env: EVAL-ENV]) => string</procedure>
    233233
    234234Performs substitution of embedded Scheme expressions, evaluated in the
     
    258258{{(PROC "...")}}. When {{PROC}} is {{#f}} the read-syntax is cleared. When
    259259{{PROC}} is {{#t}} then {{PROC}} is {{identity}}.
     260
     261<enscript language=scheme>
     262(require-extension utf8-string-interpolation)
     263(require-extension string-interpolation-syntax)
     264
     265(set-sharp-string-interpolation-syntax string-interpolate)
     266;#"foo #(+ 1 2)bar #{(and 1 2)} baz"
     267</enscript>
    260268
    261269
Note: See TracChangeset for help on using the changeset viewer.