1 个仓库
Updating array elements at specific indices while returning a new array to preserve immutability.
Distinct from Array Element Modifiers: Focuses on immutable updates for functional purity, whereas the parent focuses on large-scale dataset modifications.
Explore 1 awesome GitHub repository matching data & databases · Immutable Element Updates. Refine with filters or upvote what's useful.
immutability-helper 是一个不可变数据操作库和对象实用工具,用于创建对象和数组的修改副本。它作为一个基于命令的状态管理器和函数式数据转换器,确保原始源数据在更新过程中保持不变。 该库通过使用一组声明式的变异命令和描述符来指定更改,从而脱颖而出。如果在变异过程中没有发生实际更改,它会返回原始对象引用,从而保持引用相等性。 它提供了对嵌套结构进行深度克隆以及对对象、数组、Map 和 Set 执行复杂状态变异的功能。该系统支持通过可插拔的变异引擎合并不可变对象并应用自定义转换逻辑。
Updates data structures using a command-based syntax that returns new copies to preserve immutability.