Hi

On 28 January 2010 16:53, Timothy Pratley <timothyprat...@gmail.com> wrote:
[...]
> eg: if you had a file which you read as a lazy sequence you could
> create worker tasks like this:
> (doseq [d data-seq]
>  (.submit clojure.lang.Agent/pooledExecutor (cast Callable #(foo d))))

What's the purpose of the cast here?

#(...) is an fn, which is Callable by definition, isn't it?  So
wouldn't that line be equivalent to:
(.submit clojure.lang.Agent/pooledExecutor #(foo d)))

-- 
Michael Wood <esiot...@gmail.com>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to