ztellman/automat

README example code errata

osfameron opened this issue · 1 comments

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.

Looks like this is fixed in 0aaad0d