I have a function info-table to display the output of a query. I have
statements like the following:
(defn show-all-quotes
[]
(future
(info-table "All Quotes"
'(:quote "Quote" :author "Author")
(all-quotes db-spec))))
I was wondering if this could be done better? Now every function calling
info-table needs to call future, because the call to generate the sequence
can take some time. The parameters of the different functions to generate
the sequences are not the same.
--
Cecil Westerhof
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.