scheme
Sum a list without recursion/looping in Scheme/Racket
I\'m working on an assignment involving Racket and I was hoping somebody could lead me into the right direction.[详细]
2023-04-13 07:05 分类:问答Sum of numbers in a list using Scheme
I want to sum the numbers in a list without using recur开发者_如何学Csion. I know you can sum a list of numbers like this[详细]
2023-04-12 10:02 分类:问答How do you write an MIT Scheme macro to return a lambda form?
I\'m baffled by trying to create the equivalent of this trivial (in Common Lisp) macro in MIT Scheme:[详细]
2023-04-12 08:37 分类:问答SICP Video Lecture 2
I have a problem with this example (define (+ x y) (if (= x 0) y (+ (-1+ x) (1+ y)))) What is the problem with -1+ and 1+, when i evaluate it i get this result[详细]
2023-04-11 19:51 分类:问答Scheme, lists, and graph theory
I\'m trying to develop a Scheme function that will take a graph as defined: (define aGraph \'{{USA {Canada Mexico}}[详细]
2023-04-10 04:57 分类:问答Scheme -> Clojure: multimethods with predicates in the methods?
I\'m converting some Scheme code to Clojure. The original uses a dispatching pattern that\'s very similar to multimethods, but with an inverted approach to the matching predicates.For example, there a[详细]
2023-04-10 04:08 分类:问答exception: current-continuation-marks: no corresponding prompt in the continuation: #<continuation-prompt-tag:web>
why do i get exception on (redirect/get) in this program #lang web-server (require web-server/formlets web-server/page) (struct app (nm) #:mutable)[详细]
2023-04-09 20:17 分类:问答Looking for references describing tail recursion optimization through exceptions
I have implemented a small lisp interpretor (sapid lisp at google code) in python and sapid lisp itself. Perhaps its main characteristic is to implement tail and mutual recursion optimization through[详细]
2023-04-08 16:36 分类:问答Scheme function that sum number u and list x u+x1+x2
Im new to Scheme and trying to make function that is (in f u x), u is integer, x is a list and f binary function. The scheme expression (in + 3 \'(1 2 3)) should return 3+1+2+3=9.[详细]
2023-04-08 16:35 分类:问答Idiomatic functional way to move disc in Towers of Hanoi
I am learning Scheme and as a toy example I am doing a solution verifier (not a solver) for Towers of Hanoi.[详细]
2023-04-08 03:41 分类:问答