Odcl_ListShowDuplicate

(FromLODCL_LM file)

<< Click to Display Table of Contents >>

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

Odcl_ListShowDuplicate

(FromLODCL_LM file)

Previous pageReturn to chapter overviewNext page

Odcl_ListShowDuplicate

This function will show you how many duplication for each item of a list.

Parameter

The List to look at

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

 

Retur  Values

A list with  item and number of duplication

 

Example:

Need to know how many duplication for eachtmtem of a list

(Odcl_ListShowDuplicate '("Nut" 21.6 54 GF "Model" "Nut" 54 "48" "pp" 54))

 

Result:

(("Nut" . 2) (21.6 . 1) (54 . 3) (GF . 1) ("Model" . 1) ("48" . 1) ("pp" . 1))

 

AutoLisp Syntax:

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