Libraryless. Click here for Pure Java version (2986L/18K).
svoid test_lastIndexOfRangePredicate(int maxLength default 8) { for (S word : allWordsOfAlphabet_maxLength(maxLength, "ft")) { L<Bool> l = map(characters(word), c -> c == 't'); assertEqualsVerbose(word, lastIndexOf(l, true), lastIndexOfRangePredicate(l(l), (i, j) -> any(subList(l, i, j)))); } }
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: | #1030508 |
Snippet name: | test_lastIndexOfRangePredicate (OK) |
Eternal ID of this version: | #1030508/1 |
Text MD5: | 0a6942945524b78b37782544970bb293 |
Transpilation MD5: | 0d9fb5ec445df37edcc1f38b8921ad15 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-01-02 17:49:59 |
Source code size: | 319 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 266 / 320 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1030527 - test_lastIndexOfRangePredicate_IIntIntPred (OK) |