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[Take] - extract a prefix from a string
StringTools[Drop] - remove a prefix from a string
Calling Sequence
Take( s, len )
Drop( s, len )
Parameters
s
-
Maple string
len
non-negative integer; length of prefix to extract or remove
Description
The Take(s, len) command returns the prefix of length len from string s.
If s has at least len characters, then the substring of s consisting of the first len characters of s is returned. That is, the string is returned. If s has length less than len, then s is returned.
The Drop(s, len) command removes the prefix of length len from string s.
If the length of s is greater than or equal to len, then the string is returned. If the length of s is less than len, then an empty string is returned.
Take and Drop satisfy the equation
for all non-negative integers n.
Examples
See Also
cat, seq, string, StringTools, StringTools[IsPrefix], StringTools[Join], StringTools[Split], StringTools[SubString]
Download Help Document