I have a list from which I would like to extract sublists:
lis = {{a,X,b},{c,d,e,X,f},{h,j,X}}
giving:
res = {{a},{c,d,e},{h,j}}
i.e., deleting each X
and its following elements from each sublist. Likely asked and answered; any pointers will be greatly appreciated!
Thanks
Listable
and save yourself the/@
:D $\endgroup$