Hi everyone,
I've problems with list members position:

 (defglobal ?*a* =  (create$ aa aa))
 thus I have the list: (aa aa)

I want to use member position, but if I write:

     (foreach ?f ?*a* (printout t (member$ ?f ?*a*)crlf ))

I obtain:
     1
     1

Otherwise I want:
    1
    2

This problem is because member$ function find the index of a element in list if 
this element exist in the list, thus if the element is duplicate in the list 
member$ function find the first element two times in the same position.

How can I obtain the position of an element in the list even if is a duplicate?

------------------------------------------------------------------------
Antonino Lo Bue
Research Fellow
ICAR-CNR Palermo
Phone: 091-6809256
Web: http://medialab.pa.icar.cnr.it/Personali/personali.html
Email: [EMAIL PROTECTED]

Reply via email to