Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Extracting a series of duplicates

From: tom::conlin::gmail::com at: 4-Jul-2005 22:54

>> a: [1 2 2 3 4 5 5 5 6]
== [1 2 2 3 4 5 5 5 6]
>> b: unique a
== [1 2 3 4 5 6]
>> forall b[remove find a first b]
== []
>> unique head a
== [2 5] On 5 Jul 2005 02:46:23 -0000, David <[3hq2w7n02--sneakemail--com]> wrote:
> I can't seem to find the right combination of functions to do this: Create a series containing the values that are repeated in another series. For example, if the first series is [1 2 2 3 4 5 5 5 6], the new series should be [2 5]. Any hints or solutions are appreciated. > -- > To unsubscribe from the list, just send an email to > lists at rebol.com with unsubscribe as the subject. >
-- ... nice weather eh