clj-commons / manifold

A compatibility layer for event-driven abstractions
1.02k stars 106 forks source link

Unexpected 'map' behavior #4

Closed pglotfel closed 9 years ago

pglotfel commented 9 years ago

When I try to run the trivial code

(require '[manifold.stream :as s])

(def a (s/stream))
(def b (s/stream))

(s/map (fn [x y] [x y]) a b)

I receive the following error:

IllegalArgumentException cannot convert manifold.stream$map$fn__4180 to source  manifold.stream/->source (stream.clj:202) 

Either I have a fundamental misunderstanding of the function, or this result is a bug :)

ztellman commented 9 years ago

Thanks, I'm obviously missing tests on this arity, I'll fix that shortly.