By Xah Lee. Date: . Last updated: .
Single Quoted String
- String can be quoted by QUOTATION MARK. E.g.
"abc"
- Inside, backslash has special meaning, known as Escape Sequence. E.g.
\n means a newline, \" is QUOTATION MARK.
- Backslash at end of line has special meaning. It joins next line and removes any white space in beginning of next line.
let xx = "aa bb"
printfn "%s" xx
let xx = "aa
bb"
printfn "%s" xx
let xx = "line 1\nline 2"
printfn "%s" xx
let xx = "aa\
bb"
printfn "%s" xx
let xx = "he said \"that\"."
printfn "%s" xx