title: Clojure style, anything like --> with doto semantics?
body: <p>I'm starting to use clojure to test a java library. So my question is more "what is the clojure way of doing this".</p>
  
  <p>I have a lot of code that looks like the following</p>
  
  <pre><code>...
   (with-open [fs (create-filesystem)]
      (let [root (.getFile fs path)]
         (is (.isDirectory root))
         (is (.isComplete root)))
      (let [suc (.getFile fs (str path "/_SUCCESS"))]
         (is (.isFile suc))
         (is (.isComplete suc))))
  </code></pre>
  
  <p>Since this is a java object, I need to verify a set of properties are true on the object.  I know about doto that will let me do things like</p>
  
  <pre><code>(doto (.getFile fs path)
    (.setPath path2)
    (.setName name2))
  </code></pre>
  
  <p>and --> will let me have a list of partial functions and have each result pass through each function. Been thinking that something like --> but keeps passing the same object like doto would help with these tests.  Would something like this be a good way to do this, or am I not really doing this the clojure way?</p>
  
  <p>Thanks for your time!</p>