chickadee » string-utils » string-interpolate

(string-interpolate STR [eval-tag: EVAL-TAG] [eval-env: EVAL-ENV]) -> stringprocedure

Performs substitution of embedded Scheme expressions, evaluated in the EVAL-ENV, prefixed with EVAL-TAG and optionally enclosed in curly brackets. Two consecutive EVAL-TAGs are translated to a single EVAL-TAG.

Similar to the #<# multi-line string.

STR is a string.

EVAL-TAG is a character, default #\#.

EVAL-ENV is an environment, default (interaction-environment).