Is there a way in Scheme Revision 5 to call out to an external program? For example: (system \"ls\") 开发者_如何学运维
I need to implement a function of one argument -- obj -- that returns a Scheme expression that, when evaluated, 开发者_如何学编程will return a copy of obj.
I ran into this code on Wikipedia: (define (pyth x y k) (* x x (lambda (x2) (* y y (lambda (y2) (+ x2 y2 (lambda (x2py2)
I\'m unsure of how to turn count-forwards into a tail-recursive program. It takes a non-negative number, n, and returns the list of integers from 0 t开发者_如何学Goo n (including n).
(define filter-in (lambda (predicate list) (let((f (lambda (l) (filter-in-sexpr predicate l)))) (map f list))))
I am writing a silly letrec in Scheme (DrRacket Pretty Big): (letrec ((is-creative? (lambda (writing) (if (null? writing)
Is there a way to return an expression using quasiquotes while still getting rid of the beginning parenthesis?
As an exercise I am trying to define a rule match-rewriter that behaves the same as match-lambda but returns its argument if no match is found.So far I have this:
I\'m a Scheme programmer, and I\'m attempting to use Guile to call Scheme functions from C++ code within a Bison specification. The documentation concerning Guile and C is great; however, I haven\'t f
I\'m trying to create \"make-change\" that will return a ls 开发者_运维百科of coins whose sum = the input, and it needs to contain the least number of coins possible.