StringTools - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Names and Strings : StringTools Package : English Text : StringTools/IsAnagram

StringTools

  

IsAnagram

  

test whether one string is an anagram of another

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

IsAnagram( s, t )

Parameters

s

-

string

t

-

string

Description

• 

The IsAnagram(s,t) command returns the value true if the string s is an anagram (permutation) of the string t. Otherwise, the value false is returned.

• 

If s and t are empty strings, the command returns true.

Examples

withStringTools:

IsAnagramelvis,lives

true

(1)

IsAnagramdiet,edit

true

(2)

IsAnagramtide,diet

true

(3)

IsAnagramtide,toad

false

(4)

IsAnagramthe eyes,they see

true

(5)

IsAnagrameleven plus two,twelve plus one

true

(6)

See Also

string

StringTools

StringTools[Anagrams]

StringTools[IsPermutation]