Hi;

Was working on a question. The question was to write a function that will swap a element in the list with next element in the list. I can get it to work for first element in the list but not for an element in the middle of the list.

Any ideas?

This is not a homework question or anything like it, jsut something i am doing myself.

Thanks