Swap two elements in list in Scheme [closed]
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I need to switch 2 elements on entered indexes in list in Scheme lang. For example: (swap-index 0 3 '(1 2 3 4 5)) (4 2 3 1 5) Can