just a simple question for now I guess:
I have a list:
list={{1, 2, 1}, {1, 10, 1}}
I simply want to Drop the last element of the two entries of the list, that is the 1's at the end. I tried it this way:
Table[Drop[list[[x]], -1], {x, 1, Length[list]}]
but I don't like it this way. I feel I'm always stuck on using this Table-function,and I'm pretty sure this can be done in a much easier way
Complement[Duplicate[]];-) but voting to close anyway because similar questions around here have tons of good answers on that topic, esp. here – Yves Klett May 08 '14 at 10:37list[[All,;;-2]]– Leonid Shifrin May 08 '14 at 10:40