3
回答
求助。common lisp问题。新手。
【腾讯云】校园拼团福利,1核2G服务器10元/月!>>>   
Write the following functions using recursion:
(last-element list) returns the last element of list;
(all-but-last list) returns all but the last element of list;
(middle list) returns the middle element of list,
assuming an odd number of elements.

Don't use any numbers to implement “middle.” You will need to make use of "cdr" and "all-but-last" for the definition of “middle.”


这个不用数字应该怎么解决?求助大神。

举报
刘昊源
发帖于5年前 3回/285阅
顶部