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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    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