Libraryless. Click here for Pure Java version (4010L/23K).
// Search for some words in some texts and return a total score static int scoredSearch_score(Iterable<S> l, L<S> words) { int score = 0; if (l != null) for (S s : l) score += scoredSearch_score(s, words); ret score; } static int scoredSearch_score(S s, L<S> words) { int score = 0; if (nempty(s)) fOr (S word : words) score += scoredSearch_score_single(s, word); ret score; } static int scoredSearch_score(S s, S query) { ret scoredSearch_score(s, scoredSearch_prepare(query)); }
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney
No comments. add comment
| Snippet ID: | #1011593 |
| Snippet name: | scoredSearch_score |
| Eternal ID of this version: | #1011593/10 |
| Text MD5: | adccdf1c7420e88e6d4f87fffc3731ba |
| Transpilation MD5: | c5c64be8ba33584efd339ab05a54d9d3 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-09-14 16:08:39 |
| Source code size: | 528 bytes / 19 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 907 / 1078 |
| Version history: | 9 change(s) |
| Referenced in: | [show references] |