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

11
LINES

< > BotCompany Repo | #1008007 // Load all Simple Wikipedia titles

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

Libraryless. Click here for Pure Java version (5639L/36K/127K).

!7

static L<S> lines;

p {
  S text = gunzipToText(#1008006);
  lines = trimToSize(dropFirst(toLines(text)));
  print(l(text) + " characters, " + l(lines) + " titles");
  print("Sorted? " + yn(isSortedList(lines)));
  print("Random entry: " + random(lines));
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1008007
Snippet name: Load all Simple Wikipedia titles
Eternal ID of this version: #1008007/5
Text MD5: 04ba39a7c84a1cbe98c98ed35b4a75f0
Transpilation MD5: 2c9f627b6fddd05dae95e007c08942f4
Author: stefan
Category: javax / a.i. / networking
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-04-29 14:08:22
Source code size: 271 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 515 / 615
Version history: 4 change(s)
Referenced in: [show references]