Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7553381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T11:02:19+00:00 2026-05-30T11:02:19+00:00

Just started learning Scheme. I’m using Dr. Racket as my compiler/interpreter. I need some

  • 0

Just started learning Scheme.
I’m using Dr. Racket as my compiler/interpreter.

I need some String functions (string-replace to be exact), so I copied from SRFI 13.

When I test it, it shows..

reference to undefined identifier: let-string-start+end

That’s defined with

define-syntax let-string-start+end

It seems that it’s being ignored? What’s actually happening?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T11:02:20+00:00Added an answer on May 30, 2026 at 11:02 am

    You don’t need to manually copy and paste items from SRFI 13: it is built into Racket. In fact, most of the major SRFI libraries are bundled with Racket: http://docs.racket-lang.org/srfi/index.html

    If you are using the r5rs language in Racket, you can pull in SRFI 13 with the following line:

    (#%require srfi/13)
    

    The strange-looking #%require is a Racket-specific hook that allows an r5rs program to load library modules from Racket.

    So an r5rs program in Racket would be something like this:

    (#%require srfi/13)
    (display (string-replace "foo world" "hello" 0 3))
    (newline)
    

    If, instead of using the basic r5rs language, you use the full-fledged #lang racket instead, importing SRFI 13 would look similar. Here’s a small program in #lang racket that does the same as the previous program:

    #lang racket
    (require srfi/13)
    (string-replace "foo world" "hello" 0 3)
    

    Unfortunately, the error you’re reporting doesn’t have enough information to accurately diagnose the problem. I suspect an incomplete copy-and-pasting somewhere, since you mention that you copied from SRFI 13. One reason why I think you may have mis-copied the code is that you mention defining it with:

    define-syntax let-string-start+end
    

    and that line is actually missing some crucial parentheses; in the original source, there’s a leading paren at the front of that line.

    But you shouldn’t try to cull bits and pieces out of the SRFI implementation by hand, at least not until you’re more familiar with Scheme. Simplify by loading the entire library.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just started learning C++ (coming from Java ) and am having some serious
I have just started learning Erlang and am trying out some Project Euler problems
I've just started learning Qt, using their tutorial. I'm currently on tutorial 7, where
I've just started learning python and I'm using MacVim as my editor with the
I just started learning Java and I'm having trouble formatting string. In the problem
I just started learning Zend. I managed to get the basic working (using zf
I just started learning C++ and am currently using codeblocks. I want to write
I just started learning about Kinect through some quick start videos and was trying
I just started learning JS the other day and am (of course) having some
I'm just started learning scheme and can't quite understand why this function does not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.