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 9229459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:34:37+00:00 2026-06-18T05:34:37+00:00

Procedure: (define (double fn) (lambda (x) (fn (fn x)))) Why can’t the following be

  • 0

Procedure:

(define (double fn) (lambda (x) (fn (fn x))))

Why can’t the following be computed with the Scheme interpreter:

((((((double double) double) double) double) 1+) 0)
  • 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-06-18T05:34:39+00:00Added an answer on June 18, 2026 at 5:34 am

    Sure it can be computed, it’s just that the number of computations is growing exponentially for each double that’s being called … if you wait a very, very long time you’ll eventually get your answer (how long? anything between a couple of hours or a couple of centuries).

    (((double double) 1+) 0)
    => 4
    ((((double double) double) 1+) 0)
    => 16
    (((((double double) double) double) 1+) 0)
    => 65536
    ((((((double double) double) double) double) 1+) 0)
    => ... ; takes too long to compute!
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to define record with procedure or function. Can you help with syntax?
I defined the Scheme procedure to return another procedure with 2 parameters : (define
In scheme I have to use random to define a procedure that accepts no
The following procedure is valid in both scheme r6rs and Racket: ;; create a
i need to define 'string-right' the procedure (define string-right (lambda (x) (substring x (quotient
How can I define a multi-statement function or procedure in using the MySQLdb lib
In Chapter 16 of The Seasoned Schemer, the authors define a recursive procedure depth,
I am learning scheme. I know how to use both lambda and let expressions.
I need to automate the following set of instructions with a pl/sql procedure: SET
define a procedure 'reduce-per-key' which a procedure reducef and a list of associations in

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.