next up previous contents index
Next: SerializableType Up: OutputType Previous: OutputType   Contents   Index

$<<$


Usage

s $<<$ x
$<<$ x


Signatures

$<<$: (TextWriter, %) $\to$ TextWriter
$<<$: % $\to$ TextWriter $\to$ TextWriter


Parameter Type Description
s TextWriter an output stream
x % an object of the type


Returns

s « x writes x in text format to the stream s and returns s after the write, while « x returns the function $s \to s << x$.


Example

import from TextWriter, MachineInteger, Character;
stdout << 65 << space;
writes ``65 '' to the standard output stream, which could also be obtained via:
import from TextWriter, MachineInteger, Character;
f := << 65;
f(stdout) << space;



Manuel Bronstein 2004-06-28