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

String -- the class of all strings


A string is thing that contains a sequence of characters (bytes). A string is normally entered as a sequence of characters surrounded by quotation marks.

i1 : "abcd"

o1 = abcd

Strings involving special characters can be entered by using the backslash as an escape character, see ". For an alternate method of entering strings with fewer escape sequences, see ///.

A net is a two-dimensional array of characters, and strings are regarded as a type of net.

Functions and methods returning a string :

Methods that use a string :

Fixed objects of class String :

For the programmer

The object String is a type, with ancestor classes Net < Thing.