转接/ Transformer 说明
作者: Undistraction创建于 2018年2月1日更新于 2023年8月14日
标签documentation
transduce 的文档说:
Transformer 是一个对象,提供了一个 2 位元减少迭代器函数 step、0 位元初始值函数 init 和 1 位元结果提取函数 result。step 函数用作 reduce 中的迭代器函数。result 函数用于将最终累加器转换为返回类型,在大多数情况下是 R.identity。init 函数可用于提供初始累加器,但被 transduce 忽略。
内容来源: ramda/ramda