We were talking about java here. ^^ So python is offering a lot more already with it somewhat first class functions. What would you guess even? does, btw?<p>But sure, let&#x27;s make things a bit harder.
As below, let&#x27;s produce a sequence of the form [true false false true true true false false false false ...] of exact length 1000 without computing any more than exactly 1000 elements.<p><pre><code>  (take 1000 (mapcat (fn [i] (repeat i (odd? i))) (range)))
</code></pre>
Of course the really interesting stuff is hard to do in one liners. But I think one of the more mind bending things is probably core.async. Go style coroutines and channels implemented as a library on top of the language. Which allows for concurrent programming inside clojurescript which is compiled to JS and thus inherently single-threaded.<p><a href="http:&#x2F;&#x2F;swannodette.github.io&#x2F;2013&#x2F;08&#x2F;02&#x2F;100000-processes&#x2F;" rel="nofollow">http:&#x2F;&#x2F;swannodette.github.io&#x2F;2013&#x2F;08&#x2F;02&#x2F;100000-processes&#x2F;</a>