Uses 911K of libraries. Click here for Pure Java version (1180L/7K).
!7 srecord Entry(O object, Number count) {} cmodule MultiSetTable > DynObjectTable<Entry> { start { set fieldsInOrder; } // API <A> void setMultiSet(MultiSet<A> ms) { new L<Entry> l; for (A a : ms.highestFirst()) l.add(Entry(a, ms.get(a))); setData(l); } }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1021087 |
Snippet name: | Multi-Set [as table] |
Eternal ID of this version: | #1021087/4 |
Text MD5: | 63b505e76e22cd8e0cbc80b93c2cc244 |
Transpilation MD5: | d8b3cbaf1ce164abfe0ac1d98661a318 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-01-22 15:05:21 |
Source code size: | 305 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 301 / 873 |
Version history: | 3 change(s) |
Referenced in: | #1021090 - dm_showMultiSet |