Skip to content

Can you return both position in a and b when it's replaced? #48

@xyd113

Description

@xyd113

print(diff(['a', {"a": 0, "b": 111}], [{"a": 0, "b": 11}, 'c']))
{0: {'b': 11}, insert: [(1, 'c')], delete: [0]}

I need the result like:
{replace: [(1, 0, {'b': 11})], insert: [(1, 'c')], delete: [0]}

because I want to know the both position in a and b when it's replaced.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions