Libraryless. Click here for Pure Java version (4564L/29K).
1 | static Set<S> sliceDump_pageNamesIncludingKeys(File f) { |
2 | Set<S> names = ciSet(); |
3 | temp CloseableIterableIterator<S> it = linesFromFile(f); |
4 | while (it.hasNext()) pcall { |
5 | S s = trim(it.next()); |
6 | if (empty(s)) continue; |
7 | if (startsWith(s, '"')) |
8 | continue with names.add(unquote(s)); |
9 | L l = optCast(L, safeUnstructure(s)); |
10 | if (l(l) != 3) continue with print("Can't parse: " + s); |
11 | names.add((S) second(l)); |
12 | } |
13 | ret names; |
14 | } |
Began life as a copy of #1024345
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1024348 |
Snippet name: | sliceDump_pageNamesIncludingKeys |
Eternal ID of this version: | #1024348/1 |
Text MD5: | 1e6f38f94425fde21dcfda5d0626cee5 |
Transpilation MD5: | 9b7676cd0ec4d1b5a150c070161a15bf |
Author: | stefan |
Category: | javax / agi.blue |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-08-04 16:06:35 |
Source code size: | 463 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 224 / 301 |
Referenced in: | [show references] |