Libraryless. Click here for Pure Java version (2813L/17K).
static LS simplifySafetyTags(Collection<S> tags) { LS l = uniquifyList(tags); if (l.contains("safe") && containsAnythingNeq(l, "safe")) ret listMinus(l, "safe"); ret l; } sS simplifySafetyTags(S tags) { LS l = tokSplitAtComma(tags); Collection<S> l2 = simplifySafetyTags(l); ret l(l2) != l(l) ? joinWithComma(l2) : tags; }
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
Snippet ID: | #1015763 |
Snippet name: | simplifySafetyTags |
Eternal ID of this version: | #1015763/11 |
Text MD5: | 718a4bc0b079176782bca6726e41ca3c |
Transpilation MD5: | f90e7243e807223062e90c40ff1b81eb |
Author: | stefan |
Category: | javax / code analysis |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-11-02 10:12:53 |
Source code size: | 350 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 448 / 530 |
Version history: | 10 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |