Skip to main content

Text.*

*count

Group: Operators

Documentation

Takes an integer and returns a new text, consisting of count concatenated copies of self.

Arguments

  • count: The number of times that the text self should be repeated to make the new text.

Examples

Repeat the text "A" five times.

      "A" * 5 == "AAAAA"

Repeat the text "Hello " twice.

      "Hello " * 2 == "Hello Hello "