list = Range[5];
NestList[Rest[#] - First[#] &, list, Length[list] - 1]
{{1, 2, 3, 4, 5}, {1, 2, 3, 4}, {1, 2, 3}, {1, 2}, {1}}
David Park
djmpark at comcast.net
http://home.comcast.net/~djmpark/
From: bahadir [mailto:bahadirgurbuz54 at hotmail.com]
i have a list with n element.i want to pick out an element from the =
list,
and to deduct the element from all the other residual elements. This =
process
is the first step. i must apply all elements of the list, invariably.
Namely, in conclusion, i will obtain n list with n-1 elements. now, i =
will
try to explain as numerically. let element number of the list be 2500. =
and i
am picking out the first element of the list. and i'm deducting the =
first
element from the residual elements of the list. and now, i have a list =
with
2499 elements.after that, i'm passing the second element, and i'm =
applying
the same processes. =C4=B1 can't do this, can anyone help me???