print fn(_ items: ..Any, separator: []u8 = " ", terminator: []u8 = "\n")
Print the items by default with a space between each of them and a new line.
Parameters
_ items: ..Any
Zero or more items to be printed.
separator: []u8 = " "
The string printed between each items. By default, a space is insered.
terminator: []u8 = "\n"
The string printed after the last item. By default, a new line is printed.
Usage:
#start {
std.print("Rawr!!")
word := "for"
std.print("No", "need", word, "spaces")
std.print("1, 2, 3, separator="|")
}
Output
Rawr!!
No need for spaces
1|2|3
See also
print_raw who does not print implicit spaces and a new line.