Quantcast
Channel: Jason Andrews Blog
Viewing all articles
Browse latest Browse all 33813

RE: removing repetitions from list with same elements but in reverse order

$
0
0
Hi Raghu, Assuming that 'a' is the original list of four sub-lists you can return the 'odd' or 'even' elements like this: idx=0 setof(item a idx++ && oddp(idx) && a) => ((1 2) (1 3) ) idx=0 setof(item a idx++ && evenp(idx) && a) => ((2 1) (3 1) ) Best regards, Lawrence.

Viewing all articles
Browse latest Browse all 33813