echo "hello" echo "world"
How do I make them print in a single line?
I am looking for something similar to python's print("hello", end="")
echo "hello", " ", "world"
Or writeLine(stdout, "hello", "world" )
write(stdout, "hello")
write(stdout, "world")
I tried this and the result is same as using two echo statements.
write(stdout, "hello") = print("hello", end="") echo "hello" = print("hello", end = "n")
echo seq[string]
import strutils
echo @["I", "can", "join", "string", "sequence"].join("")