Thanks visose, That makes sense. I knew there must have been an easy way to do it. My only problem is that there could be cases where there are more than one duplicate. So for the case above, there could be three 4's, or more. The list should already be ordered, so they should always be next to each other. But is there a way to shift more than 1 number, without using multiple shift and cull components? -Andy
On Nov 26, 12:21 am, visose <[EMAIL PROTECTED]> wrote: > If there is at most only 1 duplicate of a number, and you have one > next to the other (as it is on your example) or you don't mind re- > ordering the list so that they follow each other, you can use the > shift component with the shift offset input as 1. Then connect the > original list and the offseted list to a 2 input formula with the > following expression: x≠y. > Then connect the original list and the formula component to a cull by > pattern component. > What the expression does is that for every item of the original list > it checks if the next item is a different number. If it is, it returns > true. > > On Nov 26, 8:43 am, Rchitekt <[EMAIL PROTECTED]> wrote: > > > I know there is a very simple way to do this, but for some reason, the > > method is escaping me. Let's say I have a list of 10 numbers: > > 1,2,3,4,4,5,5,6,7,8. So, there are two 4's and two 5's. What I would > > like to do is search the list and if there is a duplicate number, then > > report a true value for the first one, and a false value for the > > duplicate. Ultimately, I would just like my list that originally had > > 10 numbers to have 8, which would look like 1,2,3,4,5,6,7,8. I could > > then feed that boolean list to a Dispatch component to split the > > list. Is there any easy way to do this. Maybe it's just late and my > > brain isn't working properly. Thanks for the help. > > -Andy
