【问题标题】:What is a stateful transducer?什么是状态转换器?
【发布时间】:2014-12-17 20:35:22
【问题描述】:

Clojure Core documentation for the 1.7 release - 以下函数

dedupe
disj!
dissoc!
filter
keep
map
random-sample
remove
replace
take-while

在他们的 API 描述中包含以下文本

Returns a transducer when no collection is provided.

还有以下功能

drop
keep-indexed
partition-all
partition-by
take
take-nth

有以下文字。

Returns a *stateful* transducer when no collection is provided.

另外——还有this criticism of this wording

我的问题是:什么是有状态转换器?即分组函数有什么相似之处。 (这就是people say typing a transducerrequire dependent types? 的原因)

【问题讨论】:

    标签: clojure stateful transducer


    【解决方案1】:
    猜你喜欢
    • 2020-04-15
    • 1970-01-01
    • 2021-07-31
    • 2011-05-11
    • 1970-01-01
    • 1970-01-01
    • 2016-12-11
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多