Along with the book Just a Scheme (second edition), I watch Computer Science 61A - Lectures on youtube. In lectures, the teacher uses the Stk interpreter, but I use the chicken circuit interpreter.
In the first lecture, he uses the "first" procedure, which, if called:
(first 'hello)
it returns "h".
The book “Just a circuit” has an example of how to implement the first:
(define (first sent) (car sent))
Which for my testing and understanding works if a list is sent. I'm trying to figure out if it’s right to say that “everything is a list” in the diagram. To be more specific, where is the "hello" list, and if so, why doesn't it work in the first procedure, as it is written in the book?
Also, if each implementation is written with "everything is a list" in mind, why does the same code not work in all implementations of the circuit?
source share