Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,6 @@
|
|||
import strutils
|
||||
|
||||
var str = "little"
|
||||
echo "Mary had a $# lamb".format(str)
|
||||
echo "Mary had a $# lamb" % [str]
|
||||
# Note: doesn't need an array for a single substitution, but uses an array for multiple substitutions.
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
import strformat
|
||||
|
||||
var str: string = "little"
|
||||
echo fmt"Mary had a {str} lamb"
|
||||
echo &"Mary had a {str} lamb"
|
||||
Loading…
Add table
Add a link
Reference in a new issue