replaceFirst, findPieces, and takeExactly

spir denis.spir at gmail.com
Sat Jan 22 19:35:25 PST 2011


On 01/22/2011 11:16 PM, bearophile wrote:
>> That function allows you to pick a determined number of elements from a
>> >  range, assuming the range is never shorter than that. That sounds a bit
>> >  obscure, but plays a pivotal role in findParts() (which is the name I
>> >  settled on for the equivalent of Python's partition()):
> "trisect" is way better than "findParts" :-) And it's a single word with no uppercase letters in the middle.

Same for "tripartite". Even better because it holds "part" and  is 
defined as:
    1. In three parts.
(http://en.wiktionary.org/wiki/tripartite)

My 2 cents.

(I find "findParts" uninformative and misleading. Kind of synonym of split.)

Denis
_________________
vita es estrany
spir.wikidot.com



More information about the Digitalmars-d mailing list