Skip to content

diffing for nested MapEntry replaces the top level entryΒ #20

Open
@den1k

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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions