pancho_hideboo
Advanced Member level 5
- Joined
- Oct 21, 2006
- Messages
- 2,847
- Helped
- 767
- Reputation
- 1,536
- Reaction score
- 733
- Trophy points
- 1,393
- Location
- Real Homeless
- Activity points
- 17,490
a = '(11 9 11 8 7 9 12 1 0 -5 11 6 7)
I want to sort above list, a and then generate new list, b.
b = '(-5 0 1 6 7 7 8 9 9 11 11 11 12)
And I want to remove duplicate elements and then generate new list, c
c = '(-5 0 1 6 7 8 9 11 12)
How can I do these tasks elegantly in Cadence SKILL Language ?
"sort(a, nil)" is not valid.
I can do these tasks for list very easily in Microsoft .NET enviroment by invoking sort method and association list, e.g. "hash table"or "dictionary".
I want to sort above list, a and then generate new list, b.
b = '(-5 0 1 6 7 7 8 9 9 11 11 11 12)
And I want to remove duplicate elements and then generate new list, c
c = '(-5 0 1 6 7 8 9 11 12)
How can I do these tasks elegantly in Cadence SKILL Language ?
"sort(a, nil)" is not valid.
I can do these tasks for list very easily in Microsoft .NET enviroment by invoking sort method and association list, e.g. "hash table"or "dictionary".