Skip to main content

Timeline for Recursion issue in Scheme

Current License: CC BY-SA 3.0

6 events
when toggle format what by license comment
Dec 17, 2014 at 1:03 vote accept Mutating Algorithm
Dec 17, 2014 at 0:38 history edited Reut Sharabani CC BY-SA 3.0
added 123 characters in body
Dec 17, 2014 at 0:33 comment added Reut Sharabani Can you give me some idea what's not clear? You were trying to end the list with '() val instead of val '(), which is a proper list. Also, lst is always null, if you take a close look - you actually veriifed it using (null? lst) in the if statement.
Dec 17, 2014 at 0:30 history edited Reut Sharabani CC BY-SA 3.0
added 123 characters in body
Dec 17, 2014 at 0:28 comment added Mutating Algorithm Can you briefly explain why we return the end of the list on the final recursion (and your solution works, thanks).
Dec 17, 2014 at 0:24 history answered Reut Sharabani CC BY-SA 3.0