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

7
LINES

< > BotCompany Repo | #1028989 - textsAndTitlesMapFromLCXZSnippet

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

Transpiled version (7618L) is out of date.

static Pair<SS> textsAndTitlesMapFromLCXZSnippet(S snippetID) {
  LineCompReader lcr = new(xzInputStream(loadLibrary(snippetID)));
  Set<S> snippetIDs = mapToTreeSet(s -> fsI(parseFirstInt(s)), startingWithDigit(lcr.versions()));
  SS titles = mapKeys fsI(parseColonProperties(lcr.textForVersion("titles.text")));
  SS texts = new ValueOnDemandMap<S>(snippetIDs, s -> lcr.textForVersion(psI(s) + ".text"));
  ret pair(texts, titles);
}

download  show line numbers  debug dex   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, xrpafgyirdlv

No comments. add comment

Snippet ID: #1028989
Snippet name: textsAndTitlesMapFromLCXZSnippet
Eternal ID of this version: #1028989/5
Text MD5: 5386542a3404b4fcc874f3dc170b0852
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-16 15:56:38
Source code size: 441 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 41 / 76
Version history: 4 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1028989 & http://1028989.tinybrain.de