Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data


< > BotCompany Repo | #1030579 - mapsToKeyValueDiffs

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2939L/17K).

static <A, B> L<KeyValueDiff<A, B>> mapsToKeyValueDiffs(Map<A, B> map1, Map<A, B> map2) {
  Set<A> keys = concatSets(keys(map1), keys(map2));
  ret mapNonNulls(keys, key -> keyValueDiffUnlessEqual(key, map1.get(key), map2.get(key)));

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1030579
Snippet name: mapsToKeyValueDiffs
Eternal ID of this version: #1030579/3
Text MD5: d940c5f120dcadb128d9f444bdbdbbc4
Transpilation MD5: e58e4f364b376831977acac3b4e47683
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-01-13 09:16:56
Source code size: 238 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 20 / 53
Version history: 2 change(s)
Referenced in: [show references]

Formerly at &