Scheme function that returns a function -
I have to write a scheme function which returns a function which then takes another argument, such as a list And in return the desired result. I have a problem that how can I return a function that accepts another ARG in the pedit In this way you can write an action like this: (c? R "arg" (> (> ((R? R "r") '(1 2 3 4)) 2> ((c? R "era") ((1 2) 3 4)) 2
(Define (CRDs) (Lambda (LCT) (repeat (cm-DDS (string-> cmds) () () () () () () () () () () () (CDR cmds) ) (CDR (Re-(CDR cmds)) ((blank (CDR cmds)) Meditation I am using
d to indicate
cdr . >,
r is not (which I do not understand). You can type it more concise by using
string-fold-right (required):
(Define (CRD) (Lambda (LCT) (string-fold-wright (Lambda (CMD X) (Case CMD (#AA) (Car X)) ((#D) (CDR X) )) (And X)) LCD CCDs)))
Comments
Post a Comment