static int scoredSearch_score_eachTerm(S s, L<S> words) { int score = 0; for (S word : words) { int wordScore = scoredSearch_score_single(s, word); if (wordScore == 0) ret 0; score += wordScore; } ret score; }
Began life as a copy of #1011593
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1016998 |
| Snippet name: | scoredSearch_score_eachTerm |
| Eternal ID of this version: | #1016998/1 |
| Text MD5: | a1fac86db2c3dff3e958ed0dde4946d7 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-07-10 14:14:48 |
| Source code size: | 237 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 746 / 746 |
| Referenced in: | [show references] |