Hi,

On Aug 13, 6:34 am, Richard Newman <[email protected]> wrote:

> I find this much nicer than stacking parens:
>
> (defn clean-lines [x]
>    (non-empty
>      (trimmed-lines
>        (read-lines x)))

There is also the nice -> macro.

        (defn clean-lines
          [x]
          (-> x read-lines trimmed-lines non-empty))

which comes close to your composition, but has easy
docstrings.

Sincerely
Meikel

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to