added some more format examples; Closes PR 9879
This commit is contained in:
parent
89d6ebaab6
commit
983afd5355
|
@ -832,7 +832,11 @@
|
|||
}
|
||||
@defproc[(format [f string] [x any/c] ...) string]{
|
||||
Formats a string, possibly embedding values.
|
||||
@interaction[#:eval (bsl) (format "Dear Dr. ~a:" "Flatt") (format "the value of ~s is ~a" '(+ 1 1) 2)]
|
||||
@interaction[#:eval (bsl)
|
||||
(format "Dear Dr. ~a:" "Flatt")
|
||||
(format "Dear Dr. ~s:" "Flatt")
|
||||
(format "the value of ~s is ~a" '(+ 1 1) (+ 1 1))
|
||||
]
|
||||
})
|
||||
|
||||
("Images"
|
||||
|
|
Loading…
Reference in New Issue
Block a user