<html><body bgcolor="#FFFFFF"><div><div><div><div>Bert, yer trollin' me.</div><div><br></div><div>The method finder was a useless waste of time for me in this case; I tried that. Alan's question (paraphrased:) How does one find the sine function if one doesn't know what it's called?<br><br>The lingua franca for this operation is "slice," in Perl, Python, and Ruby. That's what people (at least on the west coast of north America, and apparently Japan) seem to call it anyway. Is this a regional dialectic? Seems like I've seen the term used in enough (english) programming books to call it colloquial (at least in my own linguistic context.)</div><div><br></div><div>Far be it from me to challenge the great and otherwise particularly ancient Smalltalk standard in favor of what has become (for better or for worse) the commonest sense... a<span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.28125); -webkit-composition-fill-color: rgba(175, 192, 227, 0.214844); -webkit-composition-frame-color: rgba(77, 128, 180, 0.214844); ">nd yes, I appreciate that Balkanization of protocol between dialects is a problem. But! Dude. It's called a friggin slice...</span></div><div>&nbsp;</div><div>All I'm saying is, it might help new people find the damned thing if we called it (or aliased/wrapped it as,) #slice:. Having a message one can send of that name would have made the (yes, Bert!) friggin method finder actually useful to me in this case.</div><div><br></div><div>I know this message may seem a bit rash / flamish, but you can't even fathom the number of times I've removed a four letter word starting with $f from it. To be clear: I'll implement #slice:, if people want it. I don't know about the range thing though, I've never done a binary selector, and I don't know if any one that might make sense can be done without messing with the parser/etc.<span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.289062); -webkit-composition-fill-color: rgba(175, 192, 227, 0.222656); -webkit-composition-frame-color: rgba(77, 128, 180, 0.222656); ">&nbsp;</span></div><div><br></div><div>Arm your photon torpedoes, ladies and gentlemen, and lock onto me;)</div><div><br></div><div>Fire.</div><div><br></div><div>On Aug 6, 2010, at 1:03 AM, Bert Freudenberg &lt;<a href="mailto:bert@freudenbergs.de"></a><a href="mailto:bert@freudenbergs.de"></a><a href="mailto:bert@freudenbergs.de"><a href="mailto:bert@freudenbergs.de">bert@freudenbergs.de</a></a>&gt; wrote:<br><br></div><div></div><blockquote type="cite"><div><div><div>On 06.08.2010, at 08:03, Casey Ransberger wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Given that I have a collection like #(foo bar baz 1 2 3), and I want to get elements 2...4, what selector do I use? </blockquote><blockquote type="cite">I'm confused. Argh. Seems like I should be able to figure this out by now without what I think of being a pain.&nbsp;I guess I can just test the bounds, but yuck.</blockquote><blockquote type="cite">
<br><div>Halp! Invizibal #slice!</div></blockquote></div><div><br></div><div><div>Can haz method finder?</div><div><br></div><div><span class="Apple-tab-span" style="white-space: pre; ">        'hello'. (2 to: 4). 'ell'</span></div></div><div><span class="Apple-tab-span" style="white-space: pre; "><br></span></div><div><span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px; ">- Bert -</span></div><br></div></blockquote><blockquote type="cite"><div><span></span><br></div></blockquote></div><div></div></div></div></body></html>