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[LeftFold] - left-associative iterator for strings
StringTools[RightFold] - right-associative iterator for strings
Calling Sequence
LeftFold( p, id, s )
RightFold( p, id, s )
Parameters
p
-
anything; typically, a Maple procedure to iterate over string s
id
anything; initial value
s
Maple string
Description
The LeftFold(p, id, s) function iterates procedure p over string s, composing the successive results from the left with the initial value id.
If s is the string argument , then the value of the expression LeftFold( F, id, s ) is .
Except for a more efficient implementation, this procedure is equivalent to the composition .
The RightFold(p, id, s) function iterates procedure p over string s, composing the successive results from the right with the initial value id.
These functions are part of the StringTools package, and so they can be used in the form LeftFold(..) only after executing the command with(StringTools). However, they can always be accessed through the long form of the command by using the form StringTools[LeftFold](..).
Examples
See Also
cat, foldl, foldr, op, seq, string, StringTools, StringTools[AndMap]
Download Help Document