Libraryless. Click here for Pure Java version (1878L/12K).
static <A> L<A> sharedKeys(Map<A, ?> a, Map<A, ?> b) { new L<A> l; if (nempty(a) && nempty(b)) for (A key : cloneKeys(a)) if (b.containsKey(key)) l.add(key); ret l; }
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1024343 |
| Snippet name: | sharedKeys - list of keys contained in two maps |
| Eternal ID of this version: | #1024343/3 |
| Text MD5: | 1008c96af9fe0bf46117b27ca89bb50d |
| Transpilation MD5: | 794fa892e7614785f9c200e3ceae2bf6 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-08-04 14:56:26 |
| Source code size: | 197 bytes / 8 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 478 / 591 |
| Version history: | 2 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |