| Author |
Comment/Response |
logo
|
01/27/11 11:34am
Hi guys,
i want to rotate a list and i get always a syntax error and i can't find it. Hope someone can help me, here the code:
Rotate_list[list_, pos_] :=
for [i = 0, i < pos, i++,
Append[list, First[list]],
Delete[list, 1]
],
Return[list]
Syntax::tsntxi: "Rotate_list[list_,pos_]:=for[i=0,<<3>>,Delete[list,1]],Return[list]" is incomplete; more input is needed.
Syntax::sntxi: Incomplete expression; more input is needed.
nice greets, logo
URL: , |
|