Hi Yao, ZY> Hit upon this late yet still want to share a different way of doing
ZY> forall a [if find next a first a [append b: [] first a]] ZY> unique b For those who are newer to REBOL, Yao's code has an interesting element to it. Notice that "append b: []" is done in-line. In other languages, you might expect the empty block, the one B refers to, to be reset on each pass, but it isn't. The block itself exists as a value, independent of B's existence, and REBOL knows it's the same block you're referring to each time. This is one of those subtle things in REBOL that can trip you up at times, especially when you're coming from another language, and it's a good reason to take some time to understand more about how REBOL works internally. -- Gregg -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject.
