On Fri, Feb 15, 2013 at 4:14 PM, larry google groups
<[email protected]> wrote:
> (defn process-event [request]
> (let [request1 (process-pre-event-hooks request)
> request2 (process-page-specific-pre-page-hooks request1)
> request3 (process-mid-event-hooks request2)
> request4 (process-page-specific-post-page-hooks request3)
> request5 (process-post-event-hooks request4)]
> request5))
If you wanted to keep the same basic processing, you could use this
much simpler code:
(defn process-event [request]
(-> request
process-pre-event-hooks
process-page-specific-pre-page-hooks
process-mid-event-hooks
process-page-specific-post-page-hooks
process-post-event-hooks))
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/
"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)
--
--
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/groups/opt_out.