Sponsored links: Algebra eBooks
 

Help Index

A

B

C

D

E

F

G

H

I

J

K

L

M

N

O

P

Q

R

S

T

U

V

W

X

Y

Z

The Maxima on-line user's manual

Algebra Calculator

Search:

Ssort Calculator

Ssort

Function: ssort (<string>)

Function: ssort (<string>, <test>) Returns a string that contains all characters from <string> in an order such there are no two successive characters <c> and <d> such that test (<c>, <d>) is false and test (<d>, <c>) is true. Default test function for sorting is <clessp>. The set of test functions is {clessp, clesspignore, cgreaterp, cgreaterpignore, cequal, cequalignore}.

          (%i1) ssort("I dont like Mondays.");
          (%o1)                    .IMaddeiklnnoosty
          (%i2) ssort("I dont like Mondays.",cgreaterpignore);
          (%o2)                 ytsoonnMlkIiedda.

(%o1)                                true
(%i2) 

Ssort Example

Related Examples