E
Size: a a a
E
ST
Г
Г
D
Г
D
DF
DF
DF
ST
E
VL
Г
Г
ST
SM
reduce
подойдет?ИИ
ИИ
(defn compute [transitions states]
(loop [current-transitions transitions]
(some (fn [{:keys [read action to_state write]}]
(when (= read (read-tape))
(write-tape action write)
(if (= to_state "HALT")
(System/exit 0)
(do
(println @tape)
(recur (get states (keyword to_state)))))))
current-transitions)))