Maple für Professional
Maple für Akademiker
Maple für Studenten
Maple Personal Edition
Maple Player
Maple Player für iPad
MapleSim für Professional
MapleSim für Akademiker
Maple T.A. - Testen & beurteilen
Maple T.A. MAA Placement Test Suite
Möbius - Online-Courseware
Machine Design / Industrial Automation
Luft- und Raumfahrt
Fahrzeugtechnik
Robotics
Energiebranche
System Simulation and Analysis
Model development for HIL
Anlagenmodelle für den Regelungsentwurf
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematikausbildung
Technik
Allgemein- und berufsbildende Schulen
Testen und beurteilen
Studierende
Finanzmodelle
Betriebsforschung
Hochleistungsrechnen
Physik
Live-Webinare
Aufgezeichnete Webinare
Geplante Veranstaltungen
MaplePrimes
Maplesoft-Blog
Maplesoft-Mitgliedschaft
Maple Ambassador Program
MapleCloud
Technische Whitepapers
E-Mail Newsletters
Maple-Bücher
Math Matters
Anwendungs-Center
MapleSim Modell-Galerie
Anwenderberichte
Exploring Engineering Fundamentals
Lehrkonzepte mit Maple
Maplesoft Welcome-Center
Resource-Center für Lehrer
Help-Center für Studierende
StringTools[Select] - select characters from a string
StringTools[Remove] - remove characters from a string
StringTools[SelectRemove] - split a string into two according to a predicate
Calling Sequence
Select(p, s)
Remove(p, s)
SelectRemove(p, s)
Parameters
p
-
Maple procedure that evaluates to either true or false; predicate that characters in the string must satisfy
s
Maple string
Description
The Select(p, s) function returns the characters in string s that satisfy the specified predicate p.
The first argument p must be a Maple procedure that returns either true or false. Procedure p is applied to each character in string s. The Select function returns the concatenation of all the characters from it for which the procedure p returns true.
The Remove(p, s) function returns the characters in string s that do not satisfy the specified predicate p.
The first argument p must be a Maple procedure that returns either true or false. Procedure p is applied to each character in string s. The Remove function returns the concatenation of all the characters from it for which the procedure p returns false.
The SelectRemove(p, s) function is equivalent to:
If p returns a value other than true or false, an exception is raised.
These functions are part of the StringTools package, and so they can be used in the form Select(..) 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[Select](..).
Note: These functions are analogous to the select, remove, and selectremove functions.
Examples
See Also
length, member, remove, select, selectremove, StringTools, StringTools[Capitalize], StringTools[IsAlphaNumeric], StringTools[IsUpper], StringTools[IsVowel], StringTools[Random]
Download Help Document