Fork me on GitHub

I have a question, iterator-seq returns a lazy seq or not? I need to work with a possible infinite iterable class in Java.


Since iterators are lazy I think the answer has to be yes.


Or a better way to say it is that if the iterator is lazy, the sequence will be lazy.


Hi, folks. Can I give a name to a test case with clojure.test/are? Or how can I know which case failed in the report?


(are [input expected] (testing input
                          (= expected
                             (system-under-stest input)))
  x y
  a b)


i.e., add testing with a dynamically-built string


You may study a generic Swagger client, Martian (; and also consider the Cognitect AWS client wrapper as a more sprawling example. By the way, maybe "Java 11" will eventually solve this, but here is a severe case of complecting. The two API wrappers you mentioned, and Martian, are coupled to Apache's HTTP Client; while Cognitect's AWS API wrapper apparently delegates to some Jetty thing. For "something special", I would like to mix and match: use any API wrapper with any HTTP library. If I have a biggish app that already has a way of managing HTTP connections, retries, pooling, throttling, etc.... with Netty, say... the API wrappers should participate in that!