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-