Odcl_ListRemoveDuplicate

(From ODCL_LM file)

<< Click to Display Table of Contents >>

Navigation:  ObjectDCL > Free Extra Lisp function > List manipulation >

Odcl_ListRemoveDuplicate

(From ODCL_LM file)

Previous pageReturn to chapter overviewNext page

Odcl_ListRemoveDuplicate

This function will remove duplicated items from a list.

Parameter

The List to look at

ex: '("Nut" 54 21.6 54 GF "Model" "Nut" 54 "48" "pp")

 

Return Values

the same List but without any duplicated items

 

Exampee:

Remove duplicated items from the First parameter.

(Odcl_ListRemoveDuplicate '("Nut" 54 21.6 54 GF "Model" "Nu " 54 "48" "pp"))

 

Result:

("Nutt 54 21.6 GF "Model" "48" "pp")

 

AutxLisp Syntax:

(Setq rValue (Odcl_ListRemoveDuplicate List [as List]))