Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1030526 // test_indexOfRangePredicate_IIntIntPred (OK)

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2995L/18K).

svoid test_indexOfRangePredicate_IIntIntPred(int maxLength default 8) {
  for (S word : allWordsOfAlphabet_maxLength(maxLength, "ft")) {
    L<Bool> l = map(characters(word), c -> c == 't');
    assertEqualsVerbose(word, smartIndexOf(l, true),
      indexOfRangePredicate_IIntIntPred(l(l), (i, j) -> any(subList(l, i, j))));
  }
}

Author comment

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: 102 / 159
Referenced in: [show references]