This is driving me completely mad: I have an alternative job like this:
(define (mysub x bind body) ;; x, bind, body are listed ...)
I need to call the function like this:
;; When this length x = length bind = 2 ;; How do I generalize these nested calls? ;; If this is not clear, then I am passing mysub as the third parameter ;; In the last mail call (mysub (first x) (first bind) (mysub (first (rest x)) (first (rest tied))
This is a small part of my homework .
I have tried to use the map with lambda functions, but I have tried to leave me in every way: something like this:
(( 1) (Bind 1) (body) (x2) (bind 2) (body);; I get million ways to combine
I do not know why this idea is taking me so much, and some help is greatly appreciated.
length = 2, I think generalization is something like (foldr mysub body x bind)
, which is applicable x < / Code> and
bind
using myusub
.
using
"Have to go around the price> through each map
does not work here Are because you have "code" body myusub
call.
Comments
Post a Comment