ztellman / automat

better automata through combinators

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README example code errata

osfameron opened this issue · comments

commented

The following example under "Searching over streams" has some errors:

> (def f
    (a/compile
      [($:clear) (a/interpose-$ :conj (range 5))]
      {:clear (constantly [])
       :conj conj}))

I believe that should be (a/$ :clear) on line 3 and a missing {:reducers ...} wrapper on lines 4-5.

commented

Looks like this is fixed in 0aaad0d