plt-scheme

Usage of Procedure and Map in Scheme

I am very new to Scheme and I am slowly finding my way around it. I have some doubts on Procedures and Map which I hope could be answered. (map plus1 (list 1 2 3 4)) will basically return me the result: (2 3 4 5) It is fine if the procedure takes in the list as its only parameter. My question is how am I able to use a procedure li...

Packaging system in Racket

I would like to use the R6RS library/module system as detailed in Dybvig's TSPL4 chapter 10 in Racket. I selected "Pretty Big" language in DrRacket. But when I do (import (list-tools setops) (more-setops) (rnrs)) on the top window and run, I get this error: "import: misuse of unit keyword in: (import (list-tools setops) (more-setops)...

Scheme/Racket: do loop order of evaluation

The following procedure is valid in both scheme r6rs and Racket: ;; create a list of all the numbers from 1 to n (define (make-nums n) (do [(x n (- x 1)) (lst (list) (cons x lst))] ((= x 0) lst))) I've tested it for both r6rs and Racket and it does work properly, but I only know that for sure for DrRacket. My question is i...

east asian language is broken when I make Executable in DrRacket(language is scheme)

hello~! I'm using DrRacket for Scheme Programming. for I'm not a person who use native English, I need to print out east asian language. there is no problem when I press run button in IDE. east asian language is printed well. but when I make an Executable file, and execute, east asian characters were broken when program prints out. ...