what I'm trying to do is take a symbolic expression, and replace all of its 'leaves' with the numbers in a list from left to right, so the left-most leaf should be replaced with 1, the next 2, etc, ...

I know we have a function to count number of items in a list, however in this procedure I am can not use this function. So how can I count number of elements in a list.
(define (last_element l count ...

I am reading the r5rs scheme standard and find that the begin() is actually a library syntax, which means that it could be defined by scheme itself, and the standard gives an implementation at the end ...

I am attempting to write a procedure similar to Scheme's assoc. The only difference between the two, is that I want my procedure only to return the value related to the key given, where as assoc gives ...

I was wondering how you would go about defining your own let expression in Scheme (I'm very new to scheme). I want it to look like (mylet id expr1 expr2) where id is bound to expr1's value and used in ...

I am trying to write a function which takes a list (x) and a number (y) and deletes every occurance of that number in the list. Ex. (deepdeleting '(0 0 1 2 0 3 0) 0) ===> '(1 2 3)
Here's what I have ...

I am attempting to write my own simplified map procedure in R5RS. In short, it takes a procedure and two lists, and returns a list with the results of the procedure called on every pair of objects in ...

i have a this function below which to make it print the list you enter (iota 1 10) so prints numbers 1-10 in a list like so (1 2 3 4 5 6 7 8 9 10). How would i change this to only take one number and ...

I need to choose a Scheme standard for an academic compiler implementation. It has to be simple enough, but should still be a powerful language. There are several (RRS–R7RS) standards of Scheme. Is ...

so I'm working on some practice problems for my programming languages class, and one of the assignments is to create a script "MyEval" which allows you to do simple nested addition and multiplication. ...

I made a game which uses the time for calculating the effect of gravity in relation of the time (speed and movement). Although the game uses mostly r5rs functions, I used the thread, sleep and other ...

EDIT: Thanks to everyone. I'm new to the language(just started using it two days ago), so that's why I'm unfamiliar with conds. I may rewrite it if I have time, but I just wanted to make sure I had ...

For 2 segments, I have both the X and Y-position of the begin and end position.
Is there an easy way to determine if these 2 segments intersect using a Scheme function?
My coordinates are represented ...

I've a list of lists, eg. ((x y z) (y z) (x y)), and I was wondering if in R5RS Scheme there might be a way to remove only the sublists from this list: eg. (y z) is a sublist as it is already 'inside' ...