scheme
How to write a macro that receives any number of arguments and print them out?
(define-syntax prnt (syntax-rules () [(prnt elem ...) (display (format \"~a\" elem .开发者_JAVA百科..))][详细]
2023-04-02 07:51 分类:问答Racket-related question
(define (mult a b);;function mult(a,b) (cond ((IsItZero? b) 0);;if b = 0: return 0 ((let((c (mult a (rest b))));;c = mult(a, floor(b/2))[详细]
2023-04-01 03:35 分类:问答SICP Exercise 1.2
I\'m having a hard time with exerc开发者_StackOverflowise 1.2 in SICP. Translate the following to prefix form:[详细]
2023-03-31 09:37 分类:问答Integrating IronScheme into Visual Studio 2010
Is there a way (or can anyone find a way) to import IronScheme into VS2010? I\'ve already taken a look at this question, and I\'ve done everything I could - I even edited the binary files involved to[详细]
2023-03-30 23:48 分类:问答Differences between #lang scheme and #lang racket
I\'m guessing that #lang racket is a dialect of scheme with much more out of the box structures and common functions and perhaps would be more pedagogic. What are the perks a #lang racket against #lan[详细]
2023-03-30 11:57 分类:问答How do I define a sub environment in scheme?
I am just hacking around with Scheme (mit-scheme) and I have just figured out how you change the environment, so that \'+\' becomes a symbol for the equivalent procedure of the \'-\' operator.[详细]
2023-03-29 15:54 分类:问答What is wrong with scheme code?
i am trying to write a scheme program which will take a list of marks as input and gives the output as a list of the grades.[详细]
2023-03-29 10:55 分类:问答Is there a way to convert a list to a set in Scheme?
I want to test for equality amongst lists, but 开发者_开发知识库I really only care that the members are the same, not the ordering. Are there any simple operators to check for this?[详细]
2023-03-29 09:33 分类:问答How to transform this function into macro?
I have difficulties understanding the new macro system of Scheme. Somewhere along the path I began to write my \"macro\" as a function first, and then later apply it as a macro.[详细]
2023-03-29 05:36 分类:问答A Scheme compiler for ARM processors
Is there a Scheme compiler (not interpreter) for ARM processors, specifically Cortex-M3? I\'m looking for a compiler, not an interpreter, to get a predictable and small execution times on a (relativel[详细]
2023-03-28 18:52 分类:问答