From Crimson Dove, 9 Months ago, written in Text.
Embed
  1. string mapMe(string s) {
  2.     var x = new List<char>[32];
  3.     for(var i =0; i < x.Length; i++)
  4.         x[i] = new List<char>();
  5.    
  6.     foreach(var c in s)
  7.         x[c%32].Add(c);
  8.     return $"[{string.Join(",", x.Select((j, i) => new{i, j}).Where(p => p.j.Any()).Select(p => $"{p.i}:[{string.Join(",", p.j)}]"))}]";
  9. }
  10.