stdio
Functions: println, print, join, eprint, eprintln, readLine
println
void println<T>(T& value)Prints the given value followed by a newline.
void println<T: Copyable>(T value)Prints the given value followed by a newline.
void println(char[*]? value)Prints the given value followed by a newline.
void println<T: Copyable>(T... args)Prints the given values followed by a newline.
Copyable arguments pass by value so that a char prints as a single character instead of decaying to a C string in print(). Calls with non-Copyable arguments use the borrow overload below.
void println<T: Printable>(T&... args)Prints the given values followed by a newline.
void print<T: Printable + Copyable>(T value)Prints the given value without allocating. Values that aren't copyable must be borrowed explicitly, so printing never moves from them.
void print<T: Printable>(T& value)Prints the given value without allocating.
void print(RepeatIterator<string> repetitions)Prints the repetition without allocating a temporary.
void print<T: Printable>(T* value)Prints the given value without allocating.
void print<T: Printable>(List<T>& list)Prints the given value.
void print<T: Printable, int N>(SmallList<T, N>& list)Prints the given value.
void print<T: Printable>(T[] array)Prints the given value.
void print(char[*]? cString)Prints the given value without allocating.
void print<T: Printable + Copyable>(T... args)Prints the given values.
Copyable arguments pass by value so that a char prints as a single character instead of decaying to a C string in print(). Calls with non-Copyable arguments use the borrow overload below.
void print<T: Printable>(T&... args)Prints the given values.
join
StringBuf join<T: Printable>(T[] array, string separator)Joins the array elements into a string with the given separator.
StringBuf join<T: Printable>(List<T>& list, string separator)Joins the list elements into a string with the given separator.
eprint
void eprint<T: Printable + Copyable>(T value)Prints the given value to stderr without allocating. Values that aren't copyable must be borrowed explicitly, so printing never moves from them.
void eprint<T: Printable>(T& value)Prints the given value to stderr without allocating.
void eprint(RepeatIterator<string> repetitions)Prints the repetition to stderr without allocating a temporary.
void eprint<T: Printable>(T* value)Prints the given value to stderr without allocating.
void eprint<T: Printable>(List<T>& list)Prints the given value to stderr.
void eprint<T: Printable, int N>(SmallList<T, N>& list)Prints the given value to stderr.
void eprint<T: Printable>(T[] array)Prints the given value to stderr.
void eprint(char[*]? cString)Prints the given value to stderr without allocating.
void eprint<T: Printable + Copyable>(T... args)Prints the given values to stderr.
Copyable arguments pass by value so that a char prints as a single character instead of decaying to a C string in eprint(). Calls with non-Copyable arguments use the borrow overload below.
void eprint<T: Printable>(T&... args)Prints the given values to stderr.
eprintln
void eprintln<T>(T& value)Prints the given value to stderr followed by a newline.
void eprintln<T: Copyable>(T value)Prints the given value to stderr followed by a newline.
void eprintln(char[*]? value)Prints the given value to stderr followed by a newline.
void eprintln<T: Copyable>(T... args)Prints the given values to stderr followed by a newline.
Copyable arguments pass by value so that a char prints as a single character instead of decaying to a C string in eprint(). Calls with non-Copyable arguments use the borrow overload below.
void eprintln<T: Printable>(T&... args)Prints the given values to stderr followed by a newline.
readLine
StringBuf readLine()Reads a line from stdin.