Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

10
LINES

< > BotCompany Repo | #1022257 // dm_snippetIDsWhereTextMatches

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2640L/17K).

// needs Snippets DB v2 (#1016872) with withTexts=true
static LS dm_snippetIDsWhereTextMatches(IPred<S> pred) {
  new LS out;
  for (O snippet : dm_allSnippets()) {
    S text = cast call(snippet, 'text);
    if (isTrue_callF(pred, text))
      out.add((S) call(snippet, 'snippetID));
  }
  ret out;
}

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: 298 / 397
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)