Libraryless. Click here for Pure Java version (1810L/12K/39K).
!752 static Map<S, S> shortDefinitions; p { shortDefinitions = new PersistentMap("shortDefinitions"); } synchronized answer { if (!tb()) null; if "a * is a *" { shortDefinitions.put(toLowerCase(m.unq(0)), m.unq(1)); ret "OK!"; } if "a * is not a *" { S in = toLowerCase(m.unq(0)); if (eqic(shortDefinitions.get(in), m.unq(1))) { shortDefinitions.remove(in); ret "Removed!"; } } if "what is a *" { S in = toLowerCase(m.unq(0)); S out = shortDefinitions.get(in); if (nempty(out)) ret format("A * is a *", in, out); } }
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