Suppose I defined a list in scheme : (list (list 1 2) (list 3 4) (list 5 6))
Is the top-level the first sublist?
Suppose I defined a list in scheme : (list (list 1 2) (list 3
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The top-level list in the example is the list that contains as its three elements
(1 2) (3 4) (5 6). The top-level is not(1 2)– the first sublist: it’s the list that contains that sublist. Given that all the list elements in the example are sublists, the top level list in((1 2) (3 4) (5 6))is seen as the left-most and right-most parenthesis.