Design a function that takes a list of number and construct the even list using Drracket

前端 未结 0 379
半阙折子戏
半阙折子戏 2020-12-22 04:45

(define (evenList xs) (cond ((null? xs) \'())
((eq? (cdr xs) \'()) \'()) (else (cons (cadr xs) (evenList (cddr xs))))))

I\'m using this code but it doesn\'t cre

相关标签:
回答
  • 消灭零回复
提交回复
热议问题