Libraryless. Click here for Pure Java version (1808L/12K/41K).
!752 p { new L<Map> l; l.add(litmap("a", 1)); printStructure(l); assertSame(l, filterByField_smart(l, "a", 1)); assertEmpty(filterByField_smart(l, "a", 0)); l.add(litmap("a", 2)); assertCollectionContents(ll(litmap("a", 1)), filterByField_smart(l, "a", 1)); assertCollectionContents(ll(litmap("a", 2)), filterByField_smart(l, "a", 2)); l.add(litmap("a", 1, "b", 2)); assertCollectionContents(ll(litmap("a", 1), litmap("a", 1, "b", 2)), filterByField_smart(l, "a", 1)); print("OK"); }
Began life as a copy of #1002460
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1011434 | 
| Snippet name: | Test filterByField_smart [OK] | 
| Eternal ID of this version: | #1011434/4 | 
| Text MD5: | e0d2d47085bfd1d1ab0ec90614b6c672 | 
| Transpilation MD5: | f27eef20ea5b79709e211277707eb91a | 
| Author: | stefan | 
| Category: | javax | 
| Type: | JavaX source code | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2017-10-29 02:38:30 | 
| Source code size: | 520 bytes / 15 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 693 / 823 | 
| Version history: | 3 change(s) | 
| Referenced in: | [show references] |