print(template, values)
print(template, values, precision)
Interpolate values into a string template.
Try it yourself:
$1 | print("Lucy is $age years old", {age: 5})
| |
$2 | print("The value of pi is $pi", {pi: pi}, 3)
| |
$3 | print("Hello, $user.name!", {user: {name: "John"}})
| |
$4 | print("Values: $1, $2, $3", [6, 9, 4])
|
See also:
All functions