racket Questions

2

Solved

I'm at the early stages of designing a framework and am fooling around with typed/racket. Suppose I have the following types: (define-type Calculate-with-one-number (-> Number Number)) (defin...
About asked 31/12, 2014 at 22:22

4

Solved

In my experience with Racket so far, I've not given much thought to vectors, because I gathered that their main benefit — constant-time access to elements — was not significant until you're working...
Testaceous asked 20/12, 2014 at 21:17

3

Solved

I'm trying to define a function in Racket which takes no arguments. All the examples that I have seen take one or more arguments. How can I do that?
Scud asked 19/11, 2013 at 20:59

1

I have the following code: (plot (function sin (- pi) pi #:label "y = sin(x)")) But while solving SICP I did not encounter such a construct: #:label "y = sin(x)" What does the hash tag mean?
Cellulose asked 31/12, 2014 at 13:41

2

Solved

Are there any difference between these 2 functions in scheme?I am using Dr Racket R5RS language to make a simulator game and I could not decide which one is better.
Chant asked 15/12, 2014 at 0:23

3

I'm teaching myself LISP with online text of Structure and Interpretation of Computer Programs, but it differs in small details with the Racket program I'm running to learn LISP on. For example, SI...
Doeskin asked 23/12, 2010 at 18:33

1

Solved

I'm taking a SCHEME course, and I was wandering if there's any difference between writing "λ" or "lambda". To clarify, is there a functional difference between these two snippets ? Using λ (defin...
Ganesha asked 1/12, 2014 at 20:28

2

Solved

I am required to use DrRacket for a CS course I am taking and have run into the problem that the editing features of DrRacket are too slow to even be usable. The REPL window on the bottom works fin...
Counterweigh asked 7/9, 2014 at 18:28

2

Python : xx = "p" + "y" + str(3) => xx == "py3" How can I get the same result using Racket? (string-append "racket" (number->string 5) " ") Is there another way in Racket, similar to the Py...
Bonacci asked 24/11, 2011 at 14:27

2

I'm using DrRacket on the newest version of OS X, Yosemite, but when I open DrRacket the systems tells me that "DrRacket quit unexpectedly". I've already tried restarting the computer, and I'm sure...
Unquestioning asked 17/9, 2014 at 0:17

1

Solved

I am trying to fully understand Objects and local states of their variables This code seems to produce different results for the same procedure called multiple times, meaning the local variable ch...
Housetop asked 2/11, 2014 at 7:13

3

Solved

I followed this tutorial and successfully installed Emacs, STk, Quack. The question is how can I load my program like I do in Racket? In Racket I can edit my code in the upper window, type some c...
Quartile asked 23/11, 2010 at 19:21

5

Solved

I'm just playing around with scheme/lisp and was thinking about how I would right my own definition of average. I'm not sure how to do some things that I think are required though. define a proce...
Butchery asked 14/7, 2010 at 2:39

1

Solved

For example, how can I write a version of map that will work with polymorphic functions in Typed Racket? I use a simple id function defined as: (: id : (All (A) A -> A)) (define (id x) x) Whe...

2

How do you get a printf %6.2f in scheme or racket, as you would in C? Right now all I have is printf "The area of the disk is ~s\n" ( - d1 d2), but I can't format the output to a specific floating...
Pilatus asked 26/9, 2014 at 20:25

1

Solved

I'm doing problems from SICP, using the #lang planet/neil directive in Racket. I'd prefer to write my code in Emacs, and I'm using Geiser-mode to run a Racket REPL through Emacs. The way racket p...
Geaghan asked 10/9, 2014 at 21:44

1

Solved

How are we supposed to configure DrRacket so that it does not use Emacs key bindings? Like I type C-s and it just saves the code instead of bringing up the search line. Or I use C-x C-f and it won'...
Moschatel asked 7/9, 2014 at 14:40

1

Solved

I am trying to understand lambda use in racket and I am still unclear. I get that they are unnamed (anonymous) functions but why is that good? I need to access my functions from other functions so ...
Sears asked 6/9, 2014 at 1:51

1

How do I return from a function before reaching the last form in standard Racket? That can be useful to avoid another level of indentation and form nesting. In Common Lisp there is return, a speci...
Biblicist asked 27/8, 2014 at 9:28

6

Solved

What are lisp dialects that compile to short, readable and modifiable JS, using JS's own types?
Epstein asked 27/10, 2012 at 21:5

3

Solved

all I want to change a element to formatted string, then I use format function. (the language I use is scheme ) As the document in http://www.gnu.org/software/mit-scheme/documentation/mit-scheme-re...
Cashandcarry asked 22/8, 2014 at 14:45

3

Solved

I'm currently trying to dive into Racket/Scheme a bit. I have an instance of the (X)REPL running next to my editor, which helps me immensely to explore the language. However, I can't seem to find a...
Casebound asked 11/4, 2012 at 21:30

2

Solved

I'm trying to work my way through Compilers: Backend to Frontend (and Back to Front Again) by Abdulaziz Ghuloum. It seems abbreviated from what one would expect in a full course/seminar, so I'm try...
Orsay asked 29/1, 2010 at 21:10

5

Solved

Christian Queinnec has written a masterpiece called LISP In Small Pieces, which features eleven Lisp Interpreters and two Lisp compilers. When you go to download the code from the website here - ...
Trocki asked 28/4, 2012 at 9:46

1

I want to write a multithreading program in Racket that actually utilizes multiple processes with shared memory space like pthread in C. Racket provides "thread", but it only uses one process to ex...
Runway asked 26/6, 2014 at 1:48

© 2022 - 2024 — McMap. All rights reserved.