I am trying to write a clause for the following list handling rule : bubble(N,List,NewList) which binds NewList with the List having its Nth element brought to the front. e.g.bubble(3,[a,b,c,d,e],Ans). binds Ans to [c,a,b,d,e]
Here is my code. I don't know why it is not working. Can somebody...
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.