Libraryless. Click here for Pure Java version (2813L/17K).
1 | static LS simplifySafetyTags(Collection<S> tags) { |
2 | LS l = uniquifyList(tags); |
3 | if (l.contains("safe") && containsAnythingNeq(l, "safe")) |
4 | ret listMinus(l, "safe"); |
5 | ret l; |
6 | } |
7 | |
8 | sS simplifySafetyTags(S tags) { |
9 | LS l = tokSplitAtComma(tags); |
10 | Collection<S> l2 = simplifySafetyTags(l); |
11 | ret l(l2) != l(l) ? joinWithComma(l2) : tags; |
12 | } |
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: | 449 / 533 |
Version history: | 10 change(s) |
Referenced in: | [show references] |