[Newbies] Exchanging Elements in an OrderedCollection

Randal L. Schwartz merlyn at stonehenge.com
Mon Jun 2 14:54:42 UTC 2008

>>>>> "Rob" == Rob Rothwell <r.j.rothwell at gmail.com> writes:

Rob> "Or, use an example to find a method in the system.  Type receiver, args,
Rob> and answer in the top pane with periods between the items.  3. 4. 7"

Rob> do you put a number for EACH parameter...meaning if we were looking for a 3
Rob> parameter method we would put a 1. 2. 3. between the receiver and the
Rob> expected answer?

If I recall, it tries all combinations, repeatedly picking one thing
as the object, another as the result, then any remaining items in all
orderings as parameters.  So, 3. 2. 1. would still find 1 + 2 = 3.

Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion

More information about the Beginners mailing list