3
回答
求助。common lisp问题。新手。
注册华为云得mate10,2.9折抢先购!>>>   
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回/266阅
顶部