Hello.

I'm reading HTDP, and not understand one data definition in the chapter 
22.3:

; An XMachine is a nested list of this shape: 
; `(machine ((initial ,FSM-State)) [List-of X1T]) 

; An X1T is a nested list of this shape: 
; `(action ((state ,FSM-State) (next ,FSM-State)))

With this definition of XMachine you can't received result like in constant 
definition xm0 above in this chapter:

(define xm0 
'(machine ((initial "red")) 
    (action ((state "red") (next "green"))) 
    (action ((state "green") (next "yellow"))) 
    (action ((state "yellow") (next "red")))))


I think it will be right to define XMachine like this:

; An XMachine is a nested list of this shape: 
; `(machine ((initial ,FSM-State)) ,@[List-of X1T])


Am I wrong?



-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/178d21a8-56a0-48dd-bdaf-45d37c18bee0%40googlegroups.com.

Reply via email to