Libraryless. Click here for Pure Java version (2640L/17K).
1 | // needs Snippets DB v2 (#1016872) with withTexts=true |
2 | static LS dm_snippetIDsWhereTextMatches(IPred<S> pred) {
|
3 | new LS out; |
4 | for (O snippet : dm_allSnippets()) {
|
5 | S text = cast call(snippet, 'text); |
6 | if (isTrue_callF(pred, text)) |
7 | out.add((S) call(snippet, 'snippetID)); |
8 | } |
9 | ret out; |
10 | } |
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1022257 |
| Snippet name: | dm_snippetIDsWhereTextMatches |
| Eternal ID of this version: | #1022257/3 |
| Text MD5: | d889ea09faf8231df6fa3d2988d874e7 |
| Transpilation MD5: | 0f6ef60be98a347e81196cdd9c3b9914 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-05-23 13:10:29 |
| Source code size: | 310 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 545 / 687 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |