Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

6
LINES

< > BotCompany Repo | #1006019 // charCounts - count characters in string in multiset

JavaX fragment (include)

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;
}

Author comment

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: 558 / 591
Referenced in: [show references]