Libraryless. Click here for Pure Java version (2338L/15K).
1 | static int substringsScoreIC(S s, Cl<S> l) { |
2 | int n = 0; |
3 | fOr (S x : l) |
4 | if (cic(s, x)) |
5 | ++n; |
6 | ret n; |
7 | } |
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: | 184 / 266 |
Referenced in: | [show references] |