3
回答
求助。common lisp问题。新手。
华为云4核8G,高性能云服务器,免费试用   
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回/323阅
顶部