Macaulay2 » Documentation
Packages » Macaulay2Doc > The Macaulay2 language > strings and nets > Net > net
next | previous | forward | backward | up | index | toc

net -- format for printing, as a net



This function is the primary function called upon by << to format expressions for printing. The default method provided by the system is to convert o to an Expression with expression and then to convert that to a Net.

A new method for formatting expressions of type T may be installed as follows:

net T := x -> ...

The function provided by the user should return a Net or a String.

There are various such methods for formatting, but we don't document them separately.

See also

Ways to use net :

For the programmer

The object net is a method function with a single argument.