Libraryless. Click here for Pure Java version (2986L/18K).
1 | svoid test_lastIndexOfRangePredicate(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, lastIndexOf(l, true), |
5 | lastIndexOfRangePredicate(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: | #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: | 267 / 321 |
Referenced in: | [show references] |