In this post, we will see how to resolve why is (((call/cc (lambda (k) k)) (lambda (x) x)) "HEY!") evaluated to “HEY!”? Question: I am reading The scheme programming language and seeing this example in continuation section: I cannot figure ...

In this post, we will see how to resolve Local defines in R5RS Scheme language in DrRacket Question: When I write the following code with two local defines in DrRacket using the #lang r5rs language standard I get an error: ...

In this post, we will see how to resolve Please explain coding for “thunks.” Question: I have the following code I’ve tried from the book. It works per the book, but I can’t understand it. Please see the comments below ...

In this post, we will see how to resolve Creating a Scheme list from a box and pointer Question: For anyone who knows Scheme: how would you make a list using this box and pointer image? I’ve tried a lot ...

In this post, we will see how to resolve Delete common elements in two lists Question: I was trying to implement a function that deletes all common elements in two lists using Scheme. Here is the function I wrote. The ...

In this post, we will see how to resolve Implementing last-non-zero without continuations Question: last-non-zero takes a list of numbers and return the last cdr whose car is 0. So, I can implement it using continuations, but how do I ...

In this post, we will see how to resolve in the Scheme language, a code that returns a list with all prime numbers less than or equal to n Question: I have been writing a code that returns a list ...

In this post, we will see how to resolve Why is my (chez) scheme symbol not visible when running with –program, but is with –script? Question: I’m trying to get my head around using Chez Scheme and running programs with ...

Question: I am trying to go through exercises of book SICM using the provided scheme code, however I could not figure out the reason for the error, I am quite novice in Scheme so can any one tell what am ...

Question: R. Kent Dybvig in his Writing Hygienic Macros in Scheme with Syntax-Case paper (p. 9) uses this example to illustrate Scheme’s pattern matching: I’m curious, what is the algorithm used for matching it? I am aware of the existence ...