File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -105,16 +105,17 @@ let version2 = original.clone().append(4); // Both versions share data
105
105
106
106
## Implementation Details
107
107
108
- The ` Chunk<A> ` type is implemented as an enum with three variants:
108
+ The ` Chunk<A> ` type is implemented as an enum with four variants:
109
109
110
110
- ` Empty ` : Represents an empty chunk
111
111
- ` Append ` : Represents a single element appended to another chunk
112
112
- ` Concat ` : Represents the concatenation of two chunks
113
+ - ` TransformFlatten ` : Represents a lazy transformation and flattening of elements
113
114
114
115
The data structure achieves its performance characteristics through:
115
116
116
117
- Structural sharing using ` Rc `
117
- - Lazy evaluation of concatenation
118
+ - Lazy evaluation of concatenation and transformations
118
119
- Immutable operations that preserve previous versions
119
120
120
121
## Contributing
You can’t perform that action at this time.
0 commit comments