String formatting with format:

From Cuis CookBook
Revision as of 22:33, 4 May 2025 by Nmingott (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  • Most of the time you will want your string to be dynamic, that is, part of their contents must depend on the result of evaluating code.
'this is value {1} and this is value {2}' format: #('foo' 123).    "=> 'this is value foo and this is value 123' "