Hi,
I have a problem that I have been trying to solve for the past week.
I have to implement swap (X,Y,List,NList) which binds Nlist with List but with its Xth and Yth elements swapped.
eg. swap (2,4,[a,b,c,d,e],Final) binds Final to [a,d,c,b,e].
Below is the code I managed to write but it...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.