String interpolation (included): Difference between revisions

Content added Content deleted
No edit summary
Line 1,539: Line 1,539:
printf("Mary had a %s lamb.\n", $extra);
printf("Mary had a %s lamb.\n", $extra);
?></lang>
?></lang>

=={{header|Picat}}==
<lang Picat>main =>
V = "little",
printf("Mary had a %w lamb\n", V),
% As a function
S = to_fstring("Mary had a %w lamb", V),
println(S).</lang>



=={{header|PicoLisp}}==
=={{header|PicoLisp}}==