Skip to content

String formatting with format:

Dr. Nicola Mingotti edited this page Dec 11, 2021 · 1 revision
  • 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' "
Clone this wiki locally