Skip to content

diffing for nested MapEntry replaces the top level entry#20

Description

@den1k

This contains an update path:

(e/diff [1 [2 [3 4]]]
        [1 [2 [3 "馃馃馃"]]])
=> [[[1 1 1] :r "馃馃馃"]]

This replaces the top level MapEntry:

(ns user
  (:import (clojure.lang MapEntry)))

(e/diff (MapEntry/create 1 (MapEntry/create 2 (MapEntry/create 3 4)))
        (MapEntry/create 1 (MapEntry/create 2 (MapEntry/create 3 "馃馃馃"))))
=> [[[] :r [1 [2 [3 "馃馃馃"]]]]]

Running into this issue using https://github.com/metosin/malli#parsing-values where parts of the parse-tree are MapEntries.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions