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

7
LINES

< > BotCompany Repo | #1027490 // substringsScoreIC - how many elements of a list are substrings of a string?

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

Libraryless. Click here for Pure Java version (2338L/15K).

static int substringsScoreIC(S s, Cl<S> l) {
  int n = 0;
  fOr (S x : l)
    if (cic(s, x))
      ++n;
  ret n;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1027490
Snippet name: substringsScoreIC - how many elements of a list are substrings of a string?
Eternal ID of this version: #1027490/1
Text MD5: 82c6bfd37669eda1361ff29c546ab03c
Transpilation MD5: b7566dd5b9184d5ab820ce855ed4c32f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-03-22 15:14:01
Source code size: 120 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 108 / 165
Referenced in: [show references]