<?xml version="1.0" encoding="utf-8" ?> <!-- for emacs: -*- coding: utf-8 -*- --> <!-- Apache may like this line in the file .htaccess: AddCharset utf-8 .html --> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg-flat.dtd" > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head><title>Net | Net -- join strings or nets</title> <link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/> </head> <body> <table class="buttons"> <tr> <td><div><a href="___Net_sp_vb_vb_sp__Net.html">next</a> | <a href="___Net_sp^_sp__Z__Z.html">previous</a> | <a href="___Net_sp_vb_vb_sp__Net.html">forward</a> | <a href="___Net_sp^_sp__Z__Z.html">backward</a> | up | <a href="index.html">top</a> | <a href="master.html">index</a> | <a href="toc.html">toc</a> | <a href="http://www.math.uiuc.edu/Macaulay2/">Macaulay2 web site</a></div> </td> </tr> </table> <hr/> <div><h1>Net | Net -- join strings or nets</h1> <div class="single"><h2>Synopsis</h2> <ul><li><span>Operator: <a href="__vb.html" title="a binary operator, often used for horizontal concatenation">|</a></span></li> </ul> </div> <div class="single"><h2>Description</h2> <div><tt>s|t</tt> -- concatenates strings or nets horizontally.<p/> The result is a string if the arguments are all strings, otherwise it is a net. The baselines of the nets are aligned.<table class="examples"><tr><td><pre>i1 : "abc" | "def" o1 = abcdef</pre> </td></tr> <tr><td><pre>i2 : x = "abc" || "ABC" o2 = abc ABC</pre> </td></tr> <tr><td><pre>i3 : x|"x"|x o3 = abcxabc ABC ABC</pre> </td></tr> </table> If one of the two arguments is an integer, it is converted to a string first.<table class="examples"><tr><td><pre>i4 : "t = " | 333 o4 = t = 333</pre> </td></tr> </table> </div> </div> </div> </body> </html>