static L<RecommendedModule> stefansOS_parseRecommendedModulesList(LS list) { ret mapNonNulls(list, func(S s) -> RecommendedModule { L<S> tok = javaTok(s); S forPublic = jextractIdEqualsQuoted("forPublic", tok); if (!isLinux() && cic(forPublic, "Linux")) null; S moduleID = jextractIdEqualsQuoted("snippetID", tok); S name = jextractIdEqualsQuoted("name", tok); int prio = 0; if (cic(forPublic, "prio -1")) prio = -1; ret nu(RecommendedModule, +moduleID, +name, +prio); }); }
Began life as a copy of #1019629
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1020376 |
| Snippet name: | stefansOS_parseRecommendedModulesList |
| Eternal ID of this version: | #1020376/4 |
| Text MD5: | da3e4bcf7efa7d7dbd5040a6c7655269 |
| Author: | stefan |
| Category: | javax / stefan's os |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-01-21 14:56:06 |
| Source code size: | 521 bytes / 12 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 565 / 609 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |