ns-allinone-2.35/rap/raplist.cc
void List::Mapcar(VoidFunctionPtr func)
{
  for (ListElement *ptr = first; ptr != NULL; ptr = ptr->next)
    (*func)((long)ptr->item);
}
//----------------------------------------------------------------------
// List::Mapcar
//	Apply a function to each item on the List, by walking through  
//	the List, one element at a time.
//
//	Unlike LISP, this mapcar does not return anything!
//
//	"func" is the procedure to apply to each element of the List.
//----------------------------------------------------------------------
:Mapcar
Apply a function to each item on the List, by walking through
the List, one element at a time.

Unlike LISP, this mapcar does not return anything!

"func" is the procedure to apply to each element of the List.
: Mapcar Apply a function to each item on the List by walking through the List one element at a time . Unlike LISP this mapcar does not return anything! " func " is the procedure to apply to each element of the List .
void List::Mapcar(VoidFunctionPtr func)
{
  for (ListElement *ptr = first; ptr != NULL; ptr = ptr->next)
    (*func)((long)ptr->item);
}
void List :: Mapcar ( VoidFunctionPtr func ) { for ( ListElement * ptr = first ; ptr != NULL ; ptr = ptr -> next ) ( * func ) ( ( long ) ptr -> item ) ; }
List::Mapcar
Apply a function to each item on the List, by walking through
the List, one element at a time.
List :: Mapcar Apply a function to each item on the List by walking through the List one element at a time .