list - Usage of Procedure and Map in Scheme -
I am very new to the plan and I am slowly searching for my way around it.
I have something
(map plus1 (list 1 2 3 4)) Basically give me results:
(2 3 4 5) This is fine if the process only takes the list as the only parameter. My question is, how do I Am I able to use a process that takes 2 criteria with map?
(plus list (m list) (define + m list)) Thanks in advance for help and advice.
(defined (plus x x () (map (lambda (x) (+ mx )) X)) or
(adder M) (lambda (x) (+ mx)) (defined plus (m xs) ( Map (Joiner M) X)) allows you to reuse the adder function for other things as well.
Comments
Post a Comment