Libraryless. Click here for Pure Java version (1907L/13K/42K).
!1001816 // a custom translator m { static new MultiSet<S> hitsByIP; p { readLocally("hitsByIP"); makeBot("Hit Log."); } static synchronized S answer(S s) { new Matches m; if (match3("note! a hit from ip *", s, m)) { hitsByIP.add(m.unq(0)); saveLocally("hitsByIP"); ret "OK, noted."; } if (match3("get hits from ip *", s, m)) ret "" + hitsByIP.get(m.unq(0)); ret null; } }
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1001814 |
Snippet name: | Hit Log |
Eternal ID of this version: | #1001814/1 |
Text MD5: | 038706339fefa433cb4543063a550238 |
Transpilation MD5: | ec57806027201676fb6a35ae3fcb611b |
Author: | stefan |
Category: | |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-11-19 17:12:48 |
Source code size: | 480 bytes / 25 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 582 / 627 |
Referenced in: | #1001816 - Translator for #1001814 ("Hit Log") #3000202 - Answer for stefanreich (>> T conversion bot) #3000238 - Answer for stefanreich (>> t power bot) #3000382 - Answer for ferdie (>> t = 1, f = 0) #3000383 - Answer for funkoverflow (>> t=1, f=0 okay) |