-1
私は私の割り当てを解決するために多くの方法を試してみましたが、問題は、私は私が何かを欠場か私は間違った方法で何かを使用推測です:スキーム取りnと、リスト機能、およびリストを返すのn
私: ソリューション
(define (return l)
(cond ((null? l) '())
(cond (!= (mod n (car l) 0))
;; here will check if not equal 0 so it is not
return then I will remove it from the list
((eq? n (car l))
(return (cdr l)))
(else (cons (car l) (n (cdr l))))
)
(return n (cdr l)) ;;if not return then I will keep it in the list
)
@hisaeこの記事はあなたを助けている場合、「ドンください。 [accept](https://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work)を忘れて、その左側のチェックマークをクリックしてください;) –