I have matrices as below:

a <- matrix(c(1:10, 11, 12), 3,4)
aa <- data.frame(a)

b <- matrix(c(10:20, 21), 4,3)
bb <- data.frame(b)
...
and many more matrices.

st = list(aa,bb, ..... )

mclapply(st, FUN, mc.cores=6); #this function apply the function to the
elements of the list 'aa', 'bb'...etc


FUN = function(st)
 {
 Is there a way/function to know the index of st(the list) currently
processed by this function as these matrices  are processed in the order of
availability of processors?
for example, if matrix bb is being processed then the index that I want is
2.
 ...
 ...
 ...

 }

	[[alternative HTML version deleted]]

