String formatting with format:

From Cuis CookBook
Revision as of 23:37, 3 May 2025 by Nmingott (talk | contribs) (importe material)
(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' "