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

# String ^ Sequence -- vertically stacked copies of a string

- Operator: ^
- Usage:
    `s^(height,depth)`
- Inputs:
  - s, a string
  - (height,depth), a pair of integers
- Outputs:
  - a net, height + depth copies of s, stacked vertically. There are depth lines below the base line

## Description

    i1 : s = "|"

    o1 = |

    i2 : s^(4,3)

         |
         |
         |
    o2 = |
         |
         |
         |

    i3 : n = net(x_0)

    o3 = x
          0

    i4 : n0 = s^(height n, depth n)

    o4 = |
         |

    i5 : n0|n|n0

    o5 = |x |
         | 0|

## See also

- strings and nets -- an overview of strings and nets in Macaulay2
- height -- height of an object
- depth -- depth of an object

## Ways to use this method:

- String ^ Sequence -- vertically stacked copies of a string

The source of this document is in /build/macaulay2-88fgJW/macaulay2-1.25.11+ds/M2/Macaulay2/packages/Macaulay2Doc/ov_strings.m2:381:0.