Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
2つのリストをパラメーターとして受け取り、元のリストから要素が交互に取得される1つのリストを返すzipという関数を作成しようとしています。
元。(zip'(abc)'(xyz))は(axbycz)に評価されます
スケルトンソリューション:
(define (zip l1 l2) (cond ((null? l1) l2) ((null? l2) l1) (else (cons ??? (cons ??? (zip ??? ???))))))
自分で記入して???ください。:-)
???