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

[REBOL] Re: newbie!?

From: arolls:bigpond:au at: 30-Nov-2000 16:14

Hello,
> if I do print probe unique [1 2 3 4 1 1] > it returns the unique values in this block.... > but if I want the repeated ones???? in this particular case "1" ???? >> u: unique o: copy b: [1 2 2 2 3 4 1 1 1]
== [1 2 3 4]
>> head foreach i u [remove find o i]
== [2 2 1 1 1] ; b is the block, o (output) is a copy of that block, ; u is a 'unique'd copy of the same block ; foreach item of the unique block, remove that item from the output block ;(once only). That leaves, therefore, only the duplicate values in b. ; show me the head of the output series (o). Anton.