Only if the given function maintains enough state to ensure uniqueness. On 10/9/06, troels knak-nielsen <[EMAIL PROTECTED]> wrote: > Isn't that what filter does ? > http://mochikit.com/doc/html/MochiKit/Base.html#fn-filter > > On 10/9/06, Bob Ippolito <[EMAIL PROTECTED]> wrote: > > > > On 10/9/06, b3d70 <[EMAIL PROTECTED]> wrote: > > > > > > I wanna know, is there any function in mochikit which can check each > > > value of an array and produce a new unique array ? > > > > > > > No, there is not. It's easy to write one that works only for string or > > number values, but it's somewhat difficult to write one that deals in > > other objects (unless they have a unique toString). > > > > -bob > > > > > > > > > > > -- > troels >
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MochiKit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit -~----------~----~----~----~------~----~------~--~---
