Libraryless. Click here for Pure Java version (2995L/18K).
1 | svoid test_indexOfRangePredicate_IIntIntPred(int maxLength default 8) { |
2 | for (S word : allWordsOfAlphabet_maxLength(maxLength, "ft")) { |
3 | L<Bool> l = map(characters(word), c -> c == 't'); |
4 | assertEqualsVerbose(word, smartIndexOf(l, true), |
5 | indexOfRangePredicate_IIntIntPred(l(l), (i, j) -> any(subList(l, i, j)))); |
6 | } |
7 | } |
Began life as a copy of #1030506
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1030526 |
Snippet name: | test_indexOfRangePredicate_IIntIntPred (OK) |
Eternal ID of this version: | #1030526/1 |
Text MD5: | b7918edd57c4a500150a11e7eb46241a |
Transpilation MD5: | a48a265c4df15b7346062bcb026ec623 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-01-05 22:21:31 |
Source code size: | 336 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 183 / 257 |
Referenced in: | [show references] |