About Chandra Archive Proposer Instruments & Calibration Newsletters Data Analysis HelpDesk Calibration Database NASA Archives & Centers Chandra Science Links

Skip the navigation links
Last modified: December 2006

URL: http://cxc.harvard.edu/ciao3.4/strjoin.tm.html
Hardcopy (PDF): A4 | Letter
AHELP for CIAO 3.4 strjoin Context: slangrtl

Synopsis

Concatenate elements of a string array

Syntax

String_Type strjoin (Array_Type a, String_Type delim)

Description

The strjoin function operates on an array of strings by joining successive elements together separated with a delimiter delim. If delim is the empty string "", then the result will simply be the concatenation of the elements.

Example

Suppose that

      days = ["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"];

Then strjoin (days,"+") will produce "Sun+Mon+Tue+Wed+Thu+Fri+Sat+Sun". Similarly, strjoin (["","",""], "X") will produce "XX".

Hardcopy (PDF): A4 | Letter
Last modified: December 2006



The Chandra X-Ray Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory.
60 Garden Street, Cambridge, MA 02138 USA.    Email: cxcweb@head.cfa.harvard.edu
Smithsonian Institution, Copyright © 1998-2004. All rights reserved.