the operations of the symbol adt the operations


The operations of the Symbol ADT

The operations of the Symbol ADT are the following.

a==b-returns true if and only if symbols a and bare identical.

a<=b-returns true if and only if either symbols a and bare identical, or symbol a precedes

symbol bin Unicode collating sequence order.

a

empty?(a)-returns true if and only if symbol a is the empty symbol.

a=~b-returns the index of the first character of the first portion of symbol a that matches the regular expression b. If there is no match, the result is undefined.

caseCompare(a,b)-compares symbols a and bcaseCompare(a,b)-compares symbols a and b, ignoring case, and returns -1 if a

 

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: the operations of the symbol adt the operations
Reference No:- TGS0356360

Expected delivery within 24 Hours