I trying to use select-input formlet to render an <开发者_JS百科SELECT ...><OPTION value=\"1\">item1</OPTION><OPTION value=\"2\">item2</OPTION></SELECT>
I want to sum the numbers in a list without using recur开发者_如何学Csion. I know you can sum a list of numbers like this
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
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)
A rookie Racket question. I\'m using Krishnamurthi\'s PLAI textbook for this one, and the associated Racket programming language.
I am a new Scheme/Racket student, so please excuse any blatant syntax errors. It came up in class today that the scheme list \'(a, b, c) should be invalid, but when we ran it, it returned:
Let\'s say that I have a list of lists in Scheme, like so: (define a-list(list (list a b) (list c d) (list e f) (list g h) (list i j)))
(require racket/mpair) (define (bld-mlst . args) (list->mlist args)) (define mlst-my (bld-mlst)) mlst-my
Is there a way to find out at ru开发者_Go百科ntime, how many inputs (arguments, parameters) a function has?
I\'m learning Racket (formerly PLT Scheme, a LISP dialect) and try to discover how to handle events different than paint-callback (maybe it\'s not even one).