Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/clojure/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Clojure 什么是有状态传感器?_Clojure_Stateful_Transducer - Fatal编程技术网

Clojure 什么是有状态传感器?

Clojure 什么是有状态传感器?,clojure,stateful,transducer,Clojure,Stateful,Transducer,在中,可以使用以下函数 dedupe disj! dissoc! filter keep map random-sample remove replace take-while drop keep-indexed partition-all partition-by take take-nth 在API描述中包含以下文本 Returns a transducer when no collection is provided. 以及以下功能 dedupe disj! dissoc! filt

在中,可以使用以下函数

dedupe
disj!
dissoc!
filter
keep
map
random-sample
remove
replace
take-while
drop
keep-indexed
partition-all
partition-by
take
take-nth
在API描述中包含以下文本

Returns a transducer when no collection is provided.
以及以下功能

dedupe
disj!
dissoc!
filter
keep
map
random-sample
remove
replace
take-while
drop
keep-indexed
partition-all
partition-by
take
take-nth
有以下文字

Returns a *stateful* transducer when no collection is provided.
此外,还出现了一些问题


我的问题是:什么是有状态传感器?即分组功能的相似之处。(这就是原因)

状态可以存储在传感器内。 相应幻灯片:

见Rich talk-