Your IP : 216.73.216.48


Current Path : /usr/X11R6/share/epic5/help/6_Functions/
Upload File :
Current File : //usr/X11R6/share/epic5/help/6_Functions/repeat

# $EPIC: repeat,v 1.2 2001/06/22 20:01:37 jnelson Exp $
Synopsis:
   $repeat(<count> <text>)

Technical:
   This function returns a string composed of the input text concatenated
   to itself the specified number of times.

Practical:
   This function has many potential uses.  For example, it would be used to
   format output from a script such that it is always the width of the
   current window.  This has the side bonus of removing the need to hard-
   code formatting devices (table headers and such), which tend to look
   rather messy in source code.

Returns:
   input string repeated count times

Examples:
   $repeat(5 hello)                   returns "hellohellohellohellohello"
   $repeat(5  )                       returns "     "  (spaces)