1 | static <A> int inflateSizeAccordingToMultiSet(Collection<A> l, MultiSet<A> ms) { |
2 | int n = 0; |
3 | for (A a : unnull(l)) |
4 | n += max(ms.get(a), 1); |
5 | ret n; |
6 | } |
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: | #1015424 |
Snippet name: | inflateSizeAccordingToMultiSet - uses 1 as default |
Eternal ID of this version: | #1015424/2 |
Text MD5: | ad6172489d39cd257270863a11982940 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-13 19:55:40 |
Source code size: | 161 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 403 / 428 |
Version history: | 1 change(s) |
Referenced in: | [show references] |