Hey, I\'m trying to use and in a cond statement. Ba开发者_开发知识库sically, instead of simply checking that <exp1> is true before running some code, I need Scheme to check that <exp1> AND
Below is my code which takes a car element of a list(carVal) and an list(initialized to empty) as parameters. I want to append the element to t开发者_StackOverflowhe list but the same is not working.
Consider the following implementation of a function to compute factorial: [1] (define fac-tail (lambda (n)
I\'ve a partially finished interpreter for a lexically scoped \'pure Lisp\' (no set!) that uses a call-by-need evaluation model which comes down to call-by-name with simple caching, the interpreter na
I know you can use (read) to get a user-inputted expression, 开发者_如何学运维but (read) will only get the first expression, evaluating anything afterwards. I was wondering if there was any way I coul
Any pointers t开发者_开发技巧o scheme/racket or clojure bayesian classification libraries? I need one for a toy/learning project that I\'m going to do. For clojure there is Incanter. It\'s more than j
The platform i\'m working with is DrScheme. I\'ve seen that a pair (a b) [constructed by (cons a b)] is implemented within the language like a procedure that looks like this:
Here it is a strange function in Scheme: (define f (call/cc (lambda (x) x) ) ) (((f \'f) f) 1 ) When f is called in the command line开发者_运维问答, the result displayed is f .
I love DrRacket IDE, but currently I\'m building a pet project whe开发者_StackOverflowre I would like to be independent from it, meaning i\'m commited to use only R5RS standard procedures.
For the 1st example given on site: View-Site, my understanding is that normal order evaluates to [6;1;1] and applicative order evaluates to [6;2;2]