echo multimethod

Methods

echo(s:Str) Source: stdlib.ngs:141
Print given string and a newline to stdout.

Returns

null

Example

echo("blah")  # Output: blah
echo(x:Any) Source: stdlib.ngs:3515
Echo non-string. Converts x to string first, using Str()

Parameters

xAnything but Str

Returns

null

Example

echo(1)
echo(fd:Int, s:Str) Source: stdlib.ngs:6080
Write a string followed by newline character to a file descriptor. Throws WriteFail on failure.

Returns

null

Example

echo(2, "blah")  # Output on stderr: blah"
echo(pp:ProcessesPipeline, s:Str) Source: stdlib.ngs:6959
Write s and newline character(s) to pp
echo(lines:Lines) Source: stdlib.ngs:7864
Echo all lines using echo(Str)
echo(dst:Any, lines:Lines) Source: stdlib.ngs:7868
Echo all lines to dst
echo(f:File, s:Str) Source: stdlib.ngs:8570
Write a string followed by newline character to a File. Throws WriteFail on failure.

Returns

null

Example

echo(File("1.txt"), "blah")
echo(f:File, l:Lines) Source: stdlib.ngs:8579
Write a lines followed by newline character to a File. Throws WriteFail on failure.

Returns

null

Example

echo(File("1.txt"), Lines(["aaa", "bbb"]))
echo(t:Table)
Displays a table. Implemented only for tty output (or output_format=text configuration)
echo(t:Table)
Output (echo) CSV table with cells that contain arrays converted to columns. TODO: data escaping.
echo(t:Table, tv:TableView=null)
Displays a table. Implemented only for tty output (or output_format=text configuration)
echo(t:Table)
Output (echo) CSV table with cells that contain arrays converted to columns. TODO: data escaping.
echo(t:Terminal, s:Str)
Undocumented