racket Questions

1

Solved

Why is '(1 2 3) written instead of (1 2 3) ? > (list 1 2 3) '(1 2 3)
Perimorph asked 8/4, 2016 at 20:4

1

I have a Racket module hw.rkt: #lang racket/base (provide hw) (define (hw) (displayln "Hello, world!")) I would like to write a C program that embeds the Racket runtime and applies the procedu...
Rupe asked 29/3, 2016 at 14:14

1

Solved

I would like to alias some racket 2htdp functions/macros, so that I can translate them in another language for my children. Things which are functions I can simply alias with define. I'm having tr...
Piles asked 13/3, 2016 at 22:12

1

Solved

Where would a raco pkg install --auto drracket install the drracket package by default? This is off of a preexisting homebrew installation of racket.
Wyckoff asked 1/3, 2016 at 1:27

4

Solved

I know they are dialects of the same family of language called lisp, but what exactly are the differences? Could you give an overview, if possible, covering topics such as syntax, characteristics, ...
Larainelarboard asked 27/6, 2012 at 9:44

1

Solved

My friend shows this to me, and I am really curious why it works like this. I at first thought that it's gonna be a syntax error, but it doesn't... Here're some of my experiments: > (lambda lam...
Spinoza asked 16/2, 2016 at 7:29

1

Solved

A splicing syntax class that I have is defined as follows. The syntax class matches a sequence of two statements (first pattern), one of the statements (third and second patterns) and perhaps even ...
Bedew asked 13/2, 2016 at 18:21

2

Solved

How do I convert a value of the form 20.2 into something that (random ...) accepts? I've tried these: ;; x defined by some earlier maths and of form 20.2 (random (round x)) (random (floor x)) ...
Southeastwardly asked 13/2, 2016 at 14:22

3

Solved

I want basic examples to try basic read/write/update operations on a file. I'm finding it difficult not having appropriate resources to learn from.
Assize asked 15/11, 2010 at 4:19

1

Solved

I've read this question before, and followed Eli Barzilay's answer on srfi-25. Besides reading the source code of srfi-25, I found writing some auxiliary function would be much more easier, for ex...
Venessavenetia asked 26/1, 2016 at 8:27

2

Solved

When I print in Racket, only the type is printed of structures, not the value. (I'm working in DrRacket, in the interactions area.) For example, I have a tree structure: #lang racket (define-stru...
Ileana asked 25/1, 2016 at 7:48

3

Solved

What I'm used to is that a string is just a list or array of characters, like in most C-like languages. However, in the scheme implementations that I use, including Chicken and Racket, a string is ...
Thready asked 21/1, 2016 at 15:24

1

Solved

I installed DrRacket, the full version not the minimal but I don't have the packages. When I run this code: #lang racket (provide (all-defined-out)) (require rsound) (play ding) It gives me ...
Symphony asked 18/1, 2016 at 10:39

3

When writing a macro that uses syntax/parse, I have created a splicing syntax class that captures options that may be provided to the macro. These options are all optional, and they may be provided...
Polygyny asked 31/12, 2015 at 20:12

3

Solved

I have DrRacket Version 5.0.2, I've spent like 3 hours already looking for the right libraries to make while, dolist, and dotimes work. I know how to use them but I just can't find the right librar...
Chung asked 13/12, 2011 at 8:35

4

Solved

Backstory: I've made a lot of large and relatively complex projects in Java, have a lot of experience in embedded C programming. I've got acquainted with scheme and CL syntax and wrote some s...
Nephron asked 20/12, 2015 at 17:8

3

Solved

General question: Can I invoke the current racket executable from within a running Racket script? Basically, I'd like a replacement for (system "racket ...") in the case that (find-executable-pat...
Rosellaroselle asked 13/12, 2015 at 2:11

1

Solved

From the official guide: “put” operation of asynchronous channels does not block—unless the given channel was created with a buffer limit and the limit has been reached. Is that mean channel-p...
Poore asked 13/12, 2015 at 4:26

1

Solved

If I have a function that prints to (current-output-port), is there an easy way to run the function without it printing to the output port? Previously, I've used /dev/null as an output target: (w...
Linettelineup asked 13/12, 2015 at 1:40

1

I am planning to develop REST based services using Racket and its web-server. One requirement that I have is the web-server operating in asynchronous mode (non-blocking event-based). Is there an...
Bunns asked 9/9, 2013 at 16:15

2

Solved

Let's say I have some file a.rkt: #lang racket (define a 12) I now want to write some test cases, using the file b.rkt that requires a.rkt: #lang racket (require "a.rkt") a Is there any way I...
Cordage asked 6/12, 2015 at 20:44

3

Solved

I was just beginning to feel I had a vague understanding of the use of lambda in racket and scheme when I came across the following 'alternate' definitions for cons and car in SICP (define (cons x...
Rhnegative asked 14/2, 2014 at 1:47

3

In Exercise 18.1.12 from htdp, I've re-written the maxi function using "local". ;; maxi : non-empty-lon -> number ;; to determine the largest number on alon (define (maxi alon) (cond [(empty...
Terat asked 30/12, 2010 at 7:46

1

Solved

In an attempt to set up racket to run from the Terminal, I created a symlink from /Applications/Racket\ v6.2.1/bin/racket to /usr/local/bin/racket with the command ln -s "/Applications/Racket\ v6....
Mori asked 19/11, 2015 at 19:32

2

Solved

I am a little confused about the meaning of the ' sign in racket. It appears to me that the same sign has different meanings. Look at 2 simple examples below: list Returns a newly allocated lis...

© 2022 - 2024 — McMap. All rights reserved.