Data update
This commit is contained in:
parent
29a5eea0d4
commit
5c1bb7bfa9
2011 changed files with 35081 additions and 3229 deletions
|
|
@ -0,0 +1,2 @@
|
|||
val x = "little"
|
||||
writeln "Mary had a {{x}} lamb."
|
||||
|
|
@ -0,0 +1 @@
|
|||
writeln "Lamb count: {{x : 7}}"
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
writeln "Partial lamb count: {{x : r2 : 10}}"
|
||||
# rounds to 2 decimal places, then aligns to 10 code points
|
||||
# (hopefully no partial lambs)
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
var extra := 'little';
|
||||
var formatted := $'Mary has a {extra} lamb.';
|
||||
Print(formatted);
|
||||
|
|
@ -1,5 +1,3 @@
|
|||
(phixonline)-->
|
||||
<span style="color: #004080;">string</span> <span style="color: #000000;">size</span> <span style="color: #0000FF;">=</span> <span style="color: #008000;">"little"</span>
|
||||
<span style="color: #004080;">string</span> <span style="color: #000000;">s</span> <span style="color: #0000FF;">=</span> <span style="color: #7060A8;">sprintf</span><span style="color: #0000FF;">(</span><span style="color: #008000;">"Mary had a %s lamb."</span><span style="color: #0000FF;">,{</span><span style="color: #000000;">size</span><span style="color: #0000FF;">})</span>
|
||||
<span style="color: #0000FF;">?</span><span style="color: #000000;">s</span>
|
||||
<!--
|
||||
string size = "little"
|
||||
string s = sprintf("Mary had a %s lamb.",{size})
|
||||
?s -- or printf(1,".."".."), probably with a \n
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
$"Mary had a _ lamb." "little"
|
||||
Loading…
Add table
Add a link
Reference in a new issue