Libraryless. Click here for Pure Java version (44L/1K).
static <A, B> Set<A> keys(Map<A, B> map) { ret map == null ? new HashSet : map.keySet(); } // convenience shortcut for keys_gen static Set keys(O map) { ret keys((Map) map); } ifclass MultiSet static <A> Set<A> keys(MultiSet<A> ms) { ret ms == null ?: ms.keySet(); } endif ifclass IMultiMap static <A, B> Set<A> keys(IMultiMap<A, B> mm) { ret mm == null ?: mm.keySet(); } endif ifclass SmallestListMultiMap static <A, B> Set<A> keys(SmallestListMultiMap<A, B> mm) { ret mm == null ?: mm.keySet(); } endif
download show line numbers debug dex old transpilations
Travelled to 20 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, dpqxeycirhfy, ekrmjmnbrukm, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, podlckwnjdmb, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, xrpafgyirdlv, yanjaxplzisb
No comments. add comment