Jul 19, 2016, 8:49 PM

@Cobaltasaurus

The easiest way is to setunion( <list of dbrefs>, )

If you want them to remain in order, then perhaps:

setq( d, <set of dbrefs> )
iter( setunion( %qd, ), setq( d, delete( %qd, rest( matchall( %qd, %i0 )))), , @@ )
%qd

I'm on a tablet and I can't check, mostly I can't remember if delete works that way. Maybe ldelete()? Anyhow, what I want deletes words at a numeric list of positions. You are skipping the first one with rest(). Should work.