Skip to content

CollectionDifference API implementation #122

@maximkrouk

Description

@maximkrouk

Checklist

Question

I want to mimic the behavior of CollectionDifference, so I started with

extension Array where Element: Differentiable {
    public func diff(from other: Array) -> StagedChangeset<Array> {
        StagedChangeset(source: self, target: other)
    }
}

And I'd like to implement Array.apply method, but I'm not sure what is the right way to apply StagedChangeset to an existing collection...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions