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[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