SortedCollection
P | N


| aString someWords|

aString := 'Now is the time for all good men to come to the aid of their blah blah blah'.

someWords := SortedCollection new.

someWords sortBlock: [:one :two | one <= two].

(aString findTokens: ' ') do: [:aWord | someWords add: aWord].

someWords

"--> SortedCollection ('aid' 'all' 'blah' 'blah' 'blah' 'come' 'for' 'good' 'is' 'men' 'Now' 'of' 'the' 'the' 'their' 'time' 'to' 'to' )"


Previous | Next


Last modified at 7/24/97; 1:41:48 PM
Other Links of Interest
College of Computing | EduTech Institute | GVU Center
Mark Guzdial | Papers | CS 2390 Spring '97 Home Page | STABLE | MMC-CaMILE

Slide Master