static MultiSet<Char> charCounts(S s) { new MultiSet<Char> set; int l = l(s); for i to l: set.add(s.charAt(i)); ret set; }
Began life as a copy of #1005063
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1006019 |
Snippet name: | charCounts - count characters in string in multiset |
Eternal ID of this version: | #1006019/1 |
Text MD5: | acb3ed46cc8456bfff80b40ab5738d43 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-12-14 14:50:26 |
Source code size: | 135 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 560 / 593 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |