Skip to content

Edits containing root map replacement #40

@arichiardi

Description

@arichiardi

Hi there, I am trying to get all the keys (recursively) that have changed by parsing the get-edits vector and it all works - plus it reads nice.

However, there is an exception: get-edits returns

[[] :r {:foo :bar}]

when the first in the diff is empty and the second populated (in my case {:foo :bar}.

Now, I can special case on that [] but I wonder if I am missing more of the way editscript returns its edits.

The I have two side question 😄

Did I understand things correctly above?

Should we mention this special case in the README, right after:

The first element of an edit is the path, similar to the path vector in
the function call update-in. It might be confusing/unexpected to others.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions