My list grabs user input, and creates a list – this list is in characters.
I would like to be able to check if the (car myList) is a character like #\1 or #\2, and then change the car of the list into 1 or 2.
I am using DrRacket.
The problem so far has been attempting to call either (set! (car myList) 1) or (list-set! (car myList) 1 )
Both are undefined references in my environment.
I just started working with scheme today, for a university assignment.
Any help would be greatly appreciated if anyone has time
Thanks
I used a stack implementation from this site:
http://zoo.cs.yale.edu/classes/cs201/Fall_2007/materials/pdfs/stacks.pdf
The stack let me , well i guess “mirror” my list. after i checked what symbol the user input character was, i would just push an appropriate character onto my stack.
if anyone ever has similar questions on this, or about my code / functions, email me. ( i think my email is shown on my user page?)
i also have a pseudo code algorithm for conversion of infix to post fix notation (that was the assignment here)