Is recursion the only way to write something like a for-loop in the Racket dialect sdp ("Schreibe dein Programm!"), in which "(for)" isn't a thing or ...
Is recursion the only way to write something like a for-loop in the Racket dialect sdp ("Schreibe dein Programm!"), in which "(for)" isn't a thing or ...
I am new to scheme and am trying to gain an understanding of how the following piece of code is able to recursively multiply two numbers provided (how ...
enter image description here i have tried this but its not working ...
provided using mit-scheme The only modification is from (cthen (make-syntactic-closure env '(it) (third exp))) to (cthen (third exp)) In brief, what ...
The following procedure causes an infinite loop: I'm still learning about Guile so I'm a bit confused why that's the case. ...
Friend gave me this problem to solve as a way for me to learn Scheme: E ::= (λ V E) | (E E) | V with V=variable and write a Scheme function freeVariab ...
I am stuck with this particular problem I was doing for fun: Why does it cause a contract violation everytime car comes around? And are there any poss ...
I have two r5rs files - scheme-interpreter.scm and scheme-interpreter-operations.scm. The first file contains two functions - interpret and evaluate. ...
I'm trying to learn a Lisp language and have settled on Guile and am trying to solve this problem: You are given an integer array coins representing ...
This is a problem I come up against all the time. I have a function that does something useful, but I want a version that does something slightly diff ...
I'm trying to implement Newton's method for cube roots, but my function seems to hang. My code is almost identical to the code the book shows for the ...
I'm new to scheme and stuck on this problem: Input list = (a b c) output = (a b c c b a ) Trying to use (reverse) and got the reversed list , but ha ...
This works fine: (sxml-match '(div) ((div) #t)) But this fails: (sxml-match '(div) ((,element) #t)) I am wondering how to match any element? ...
I have the following procedures: Here, I want to create a function sty that takes in a function, applies it to a list and then removes the first el ...
I want to have these lists returned in the expected format (() () () ()) but it ends up looking like ((((())))) what combinations of list and append w ...
I'm trying to write a R7RS library which will reverse a list in a destructive manner, I currently have written this code; The only thing I'm worri ...
I'm writing a program/game where I use Guile for scripting on top of a C program. For example I have a command struct type(which is also used for move ...
I am attempting to write a script that samples one of my colleagues' names randomly: #!/usr/bin/env gosh -b (define-module utils (use data.random ...
I am attempting to follow the Gauche manual to write a simple toy script, but I am struggling with the Gauche import mechanism. Here is my script, ra ...
So far all I have is that it checks if it is a null list. If it is then it passes the empty list. What I am trying to do is I want to iterate throug ...