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

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -