I have this list
preRowLocalizer[27]={Null, Null, Null, Null, Null, Null, Null, Null, Null, Null, Null, \
Null, Null, Null, Null, Null, Null, Null, Null, Null, Null, {0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1, 0, 0, 0, 0,
0}, Null, Null, Null, Null, Null, Null, Null, Null, Null, Null, \
Null, Null, Null, Null, Null, Null, Null, Null, Null, Null, Null, \
Null, Null, Null, Null, Null}
But I want to get only the element of the form
{0,....,0,1,0,...,0}
I tried using the command Select[preRowLocalizer[27], # != Null], but it is not giving me any output. Does anyone know why this is happening?
=!=
instead of!=
, and report back. $\endgroup$Select[list, # =!= Null &]
works for me; what did you put in? $\endgroup$Select[]
; pay attention to the "Basic Examples". $\endgroup$