Try this:

X = 1 2 3 4 1 2 3 4

t : .FUNCTIONAL .FORCE .REPEAT 
        set +x
        set -A vals
        for i in $(%)
        do
                vals[${i}]=1
        done
        print ${!vals[*]}

tt : .MAKE
        print VALS = $(X)
        VALS := $(t $(X))
        print VALS = $(VALS)

--- On Mon, 8/17/09, [email protected] <[email protected]> wrote:


From: [email protected] <[email protected]>
Subject: [ast-users] Are there any other ways to remove duplicated token values 
without re-ordering? nmake edit operator
To: [email protected]
Date: Monday, August 17, 2009, 4:11 PM


Hi, 
How can I remove duplicated token values without sorting? 
If I have duplicated values in an expanded variable, I could remove duplicated 
values with the heap sort operator ":H<=U". 
But most of case I can not the heap sort operator because the order of token 
list is important. Are there any other ways to remove duplicated token values 
without re-ordering?

Thanks 
Sang
-----Inline Attachment Follows-----


_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users



      
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to