That works for lots of methods. But for some methods there are no decent comments or examples. This is what I get from "Senders of translateFrom:to:table:"<br> translateWith: table<br> "translate the characters in the string by the given table, in place"
<br> ^ self translateFrom: 1 to: self size table: table<br><br>I don't find see anything called "references".<br>I cannot find a single example of what a table arguments should look like. <br><br>Here's a simple example of what I want to do:
<br><br>myString := 'ACGTACGT'.
<br>myFixedString := myString translateFrom: 1 to; (myString size) table: table.<br><br>Where table would be something like a hash: A => 5, G => 6, C => 7, T => 8.<br><br>in Perl, I would write: perl -pe 'tr/AGCT/5678/' <return> on the command line and then paste in the string and perl would return the translated string.
<br><br>Thanks for your help.<br>Tom Keller<br><br><div><span class="gmail_quote">
On 7/28/06, <b class="gmail_sendername">Klaus D. Witzel</b> <<a href="mailto:klaus.witzel@cobss.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">klaus.witzel@cobss.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Fri, 28 Jul 2006 20:49:13 +0200, Mathieu wrote:<br><br>> Hi thomas,<br>><br>> You can find some sender of it by right click -> more.. -> senders of it<br><br>And there is a way to avoid stinkin' right-click: in any text, select the
<br>text of a selector (including its arguments) and do cmd-m and cmd-n :) For<br>example, in a browser with the class definition template (Object subclass:<br>#NameOfSubclass ...) do select from subclass: to category: and see what I
<br>mean.<br><br>> So you can understand how people use it.<br><br>Yes, one of the best ways to come to use to Smalltalk/Squeak.<br><br>/Klaus<br><br>> Other wise find the references to it and you can read comment of the
<br>> metod or even understand the implementation. (follow same method for<br>> 'sender of it' but chose 'references to it')<br>><br>> Math<br><br>_______________________________________________<br>Beginners mailing list
<br><a href="mailto:Beginners@lists.squeakfoundation.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Beginners@lists.squeakfoundation.org</a><br><a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://lists.squeakfoundation.org/mailman/listinfo/beginners
</a><br></blockquote></div><br><br clear="all"><br>-- <br>Tom<br>"Ecrasez l'Infame!" -- Voltaire