11

1.7 版本的 Clojure Core 文档中- 以下函数

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.

另外——也有人批评过这个措辞

在此处输入图像描述

我的问题是:什么是有状态转换器?即分组功能的相似之处。(这就是人们说输入传感器需要依赖类型的原因吗?

4

1 回答 1