The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

AlexPeake (69) [Avatar] Offline
#1
I, for one, do not understand:

:constructors {[String] [String]
[String String] [String String]}

Table 5.1 has an explanation, but I do not understand.

Or:

(defn -initialize
([s1]
(println "Init value:" s1)
[[s1 "default"] (ref s1)])
([s1 s2]

Similarly Table 5.1 has an explanation that I do not understand.

You talk about vectors and maps in bot of the above, but not what they mean.

Also, where do the state elements get stored? There is the element:

:state localState

Does this declare some element called "localState"? What is its type?
(println "Init values:" s1 "," s2)
[[s1 s2] (ref s2)]))