MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Function making white spaces

  • To: mathgroup at
  • Subject: [mg109192] Re: Function making white spaces
  • From: Bob Hanlon <hanlonr at>
  • Date: Fri, 16 Apr 2010 05:52:13 -0400 (EDT)

stringRepeat[s_String, n_Integer?Positive] :=
  StringJoin[Table[s, {n}]];

stringRepeat["s", 5]


stringRepeat[" ", 35] ==
 StringJoin[ConstantArray[" ", 35]]


Bob Hanlon

---- Alexei Boulbitch <Alexei.Boulbitch at> wrote: 

Dear community,

I know that Mathematica has a built-in function that places a defined 
number of white spaces and may be used with say, Print operator.
I cannot however, recall its  name, or find it in Help. Please give me a 
hint, what is it?

Best, Alexei

Alexei Boulbitch, Dr., habil.
Senior Scientist

ZAE Weiergewan
11, rue Edmond Reuter
L-5326 Contern

Phone: +352 2454 2566
Fax:   +352 2454 3566


This e-mail may contain trade secrets or privileged, undisclosed or otherwise confidential information. If you are not the intended recipient and have received this e-mail in error, you are hereby notified that any review, copying or distribution of it is strictly prohibited. Please inform us immediately and destroy the original transmittal from your system. Thank you for your co-operation.

  • Prev by Date: London Computational Knowledge Summit
  • Next by Date: Re: Creating a hybrid cell
  • Previous by thread: Re: Function making white spaces
  • Next by thread: Locator appearance