Maple Professionel
Maple Académique
Maple Edition Étudiant
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professionel
MapleSim Académique
Maple T.A. - Suite d'examens de classement
Maple T.A. MAA Placement Test Suite
Möbius - Didacticiels de mathématiques en ligne
Machine Design / Industrial Automation
Aéronautique
Ingénierie des véhicules
Robotics
Energie
System Simulation and Analysis
Model development for HIL
Modélisation du procédé pour la conception de systèmes de contrôle
Robotics/Motion Control/Mechatronics
Other Application Areas
Enseignement des mathématiques
Enseignement de l’ingénierie
Enseignement secondaire et supérieur (CPGE, BTS)
Tests et évaluations
Etudiants
Modélisation financière
Recherche opérationnelle
Calcul haute performance
Physique
Webinaires en direct
Webinaires enregistrés
Agenda des évènements
Forum MaplePrimes
Blog Maplesoft
Membres Maplesoft
Maple Ambassador Program
MapleCloud
Livres blancs techniques
Bulletin électronique
Livres Maple
Math Matters
Portail des applications
Galerie de modèles MapleSim
Cas d'Etudes Utilisateur
Exploring Engineering Fundamentals
Concepts d’enseignement avec Maple
Centre d’accueil utilisateur Maplesoft
Centre de ressources pour enseignants
Centre d’assistance aux étudiants
StringTools[Join] - join a list of strings
StringTools[CaseJoin] - join a list of strings, mapping each initial lowercase letter to uppercase
Calling Sequence
Join( stringList, sep )
CaseJoin( stringList )
Parameters
stringList
-
list of strings; strings to join
sep
(optional) string; string separator
Description
The Join(stringList, sep) command concatenates the ordered list of strings stringList, separated by an optional fixed string sep. If parameter sep is not included in the calling sequence, the concatenated strings are separated by a single space character. The string formed by the concatenation of the strings in stringList is returned.
The first calling sequence is equivalent to
If stringList is the empty list, then the result is an empty string. Otherwise, the strings in stringList are concatenated in order, with the separator string sep between each consecutive pair. If stringList has only one member, that member is the result string. (The separator string is used only in case there are at least two strings in stringList.)
The Join procedure is an approximate inverse of the Split procedure.
The CaseJoin(stringList) command concatenates the strings in stringList after first mapping each initial lowercase letter to uppercase. Characters that are not lowercase are not modified in the concatenated string.
Examples
The following procedure formats the prime factorisation of a positive integer in LaTeX.
TeXFactors := proc( n :: posint ) local F := ifactors( n )[ 2 ]; local S := map( pp -> `if`( pp[2] = 1, sprintf( "{%d}", pp[1] ), sprintf( "{%d}^{%d}", op( pp ) ) ), F ); StringTools:-Join( S, "\\cdot" ) end proc:
See Also
string, StringTools, StringTools[CaseSplit], StringTools[Split]
Download Help Document