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

14
LINES

< > BotCompany Repo | #1010779 // Parse GAC-36K file => gac36k()

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

Download Jar. Libraryless. Click here for Pure Java version (3012L/21K).

1  
!7
2  
3  
static new TreeMap<S, Float> map;
4  
5  
p {
6  
  for (S s : tlft(loadSnippet(#1010778))) pcall {
7  
    int i = indexOfAny(s, 0, " \t");
8  
    float f = parseFloat(takeFirst(i, s));
9  
    Float previous = mapPutIfChange2(map, trim(substring(s, i)), f);
10  
    if (previous != null)
11  
      print("Duplicate question: " + s + " (was: " + previous + ")");
12  
  }
13  
  print("Have " + n(map, "question"));
14  
}

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: #1010779
Snippet name: Parse GAC-36K file => gac36k()
Eternal ID of this version: #1010779/9
Text MD5: 626ef5f3cc7c17b1279475d9070fd0cd
Transpilation MD5: bf936a03e8c9fb748ccffc967a548d9a
Author: stefan
Category: javax / a.i.
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-11 17:57:41
Source code size: 395 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 426 / 870
Version history: 8 change(s)
Referenced in: [show references]