Question totally unrelated to implementation and optimization: Why do the function names have underscores when "camel-humped" names are the customary syntax in ActionScript (and Java, and Javascript...)?
Some of the names could be clearer: - "nitems" looks like "number of items" (i.e., "length"); why not "numSetItems" or "countSetItem"? - "rindex" is a bit confusing; why not "lastIndexOf" (as in the String object)? (Also "index" could be "indexOf", to better agree with the String interface.) - "some" -- maybe "forSome", or "exists"? (Also, "every" makes more sense to me as "forAll".) - "uniq" -- do those two characters make much difference? - "eql" -- "equals" is far more standard - "include" is pretty close to a reserved word -- why not "hasItem"? - the "delete" functions don't so much "delete" (i.e., totally destroy) as "remove" or "strip". Cool stuff, though! -- T. Michael Keesey -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ryanm Sent: Tuesday, July 25, 2006 7:31 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Array Empowerment > Here is the next iteration - new and improved. Again, all > comments and optimizations, including conversations about > optimizations, are most welcome! > Those are great additions. You need a duplicate_deep and a replicate_deep, though. Right now, any obejcts stored in the array will be references in the new array. A _deep method would make copies of those too, recursively caling Array.duplicate, or Object.duplicate. ;-) ryanm _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com