Uses 911K of libraries. Click here for Pure Java version (1180L/7K).
1 | !7 |
2 | |
3 | srecord Entry(O object, Number count) {} |
4 | |
5 | cmodule MultiSetTable > DynObjectTable<Entry> { |
6 | start { set fieldsInOrder; } |
7 | |
8 | // API |
9 | |
10 | <A> void setMultiSet(MultiSet<A> ms) { |
11 | new L<Entry> l; |
12 | for (A a : ms.highestFirst()) |
13 | l.add(Entry(a, ms.get(a))); |
14 | setData(l); |
15 | } |
16 | } |
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: | 300 / 873 |
Version history: | 3 change(s) |
Referenced in: | [show references] |