TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Clojure's missing piece

10 点作者 greenonion大约 8 年前

1 comment

kyptin大约 8 年前
This was the transformation that hooked me:<p><pre><code> (transform (subselect ALL :a even?) reverse [{:a 1} {:a 2 :b 1} {:a 4} {:a 5} {:a 6} {:a 8}]) ;; =&gt; [{:a 1} {:a 8 :b 1} {:a 6} {:a 5} {:a 4} {:a 2}]] </code></pre> I&#x27;m solid with Clojure, and I am not even sure how to begin expressing this transformation without Specter.<p>Granted, it&#x27;s not clear why you would want to do this in a real program. But I&#x27;m convinced about the generic power of such transformations and have little doubt I&#x27;d find use cases (albeit probably not <i>this</i> use case) in real code bases.