From: William Crawford Date: 2006-09-03T03:30:25+09:00 Subject: Re: Ordered contrast for String or Array 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? Google refused to provide a definition or examples. -- Posted via http://www.ruby-forum.com/.