From: Trans Date: 2006-09-03T04:15:30+09:00 Subject: Re: Ordered contrast for String or Array William Crawford wrote: > Trans wrote: > > I have two strings: "aabc" and "aacd". I want to get an "ordered > > contrast" to see the difference in their spellings. Eg. > > > > "aabc".ordered_contrast( "aacc" ) => " cc" > > > > In the example a space represents a matching string, although I suppose > > there may be a better alternative. In any case, one could also imagine > > a non-ordered contrast: > > > > "aabc".contrast( "aacc" ) => " c " > > > > From this, the 'ordered contrast' means that the first different letter, > and all following letters, are shown? And unordered means only the > different letters are shown? That's right. > Google refused to provide a definition or examples. Yes, they aren't technical terms, just me trying my best to describe them. T.