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


< > BotCompany Repo | #1004043 // Test jfind with IndexedList

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (1305L/9K/30K).


p {
  IndexedList.debug = true;
  IndexedList<S> tok = new IndexedList<S>(javaTok("hello world hello"));
  assertEquals(1, jfind(tok, "hello"));
  assertEquals(3, jfind(tok, "world"));
  assertEquals(-1, jfind(tok, "bla"));
  assertEquals(1, jfind(tok, "hello"));
  assertEquals(3, jfind(tok, "world"));
  assertEquals(-1, jfind(tok, "bla"));

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1004043
Snippet name: Test jfind with IndexedList
Eternal ID of this version: #1004043/1
Text MD5: d0909cb20892825e895fe1384807555d
Transpilation MD5: 7c584a1a0da0861a129ef79026906a00
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-08-04 17:05:52
Source code size: 392 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 452 / 520
Referenced in: