From: Richard J. <ri...@an...> - 2005-11-24 15:23:18
|
Well, it seems like people are generally for this proposal, so I have added a skeletal ExtArray module to CVS. At present it is simply a straightforward include of Array. > Array.for_all > Array.exists > Array.mem > Array.memq > Array.assoc etc. > > These seem like nice additions. I'll add these and make them look like the List versions. > Array.sort > > This already exists. > > Array.find > > Will this return the element or an index? I'm not sure which is better? I think probably having Array.find be exactly like List.find, ie. returning an element, and having an additional Array.find_index to return the index would be the best idea. What do people think? > Array.filter > Array.find_all > Array.partition > > Would these return lists or arrays? I think it's better to return arrays, but what do people think about that? Rich. -- Richard Jones, CTO Merjis Ltd. Merjis - web marketing and technology - http://merjis.com Team Notepad - intranets and extranets for business - http://team-notepad.com |