filter - Iterative filtering odd numbers in list -


here task have solve: write iterative function, receives list numbers , creates new list, consists of numbers received list.

i found few posts similar questions , solutions, couldn't use them help, because in these solution using "car" , "cdr" commands, haven't had in our schedule yet. how can this? start this:

(define filter-odds   (lambda(x)     (if (odd? x)       ...) 

terrible oversight: no 1 has mentioned how design programs, here. kind of program right smack in middle of htdp's path. specifically, totally straightforward application of list template section 9.3, "programming lists." perhaps class using htdp?


Comments

Popular posts from this blog

Capture and play voice with Asterisk ARI -

java - Why database contraints in HSQLDB are only checked during a commit when using transactions in Hibernate? -

visual studio - Installing Packages through Nuget - "Central Directory corrupt" -