Libraryless. Click here for Pure Java version (1530L/10K/34K).
!752 static PersistentLog<McMsg> msgs; static class McMsg { S miniChat, user, text; long when; } static new MultiMap<S, McMsg> byMiniChat; p { msgs = new PersistentLog("msgs.log"); for (McMsg m : msgs) byMiniChat.put(m.miniChat, m); } synchronized answer { if (match("mini chat size", s) || match("minichat size", s)) ret n(l(msgs), "msg") + ", " + n(l(byMiniChat.keySet()), "mini-chat"); } static synchronized void addToMiniChat(S miniChat, S user, S text) { new McMsg m; m.miniChat = miniChat; m.user = user; m.text = text; m.when = now(); byMiniChat.put(m.miniChat, m); msgs.add(m); } static synchronized L<McMsg> listMiniChat(S miniChat) { ret cloneList(byMiniChat.get(miniChat)); }
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