1 | static Map<S, Int> loadSpellList(S snippetID) {
|
2 | new LinkedHashMap<S, Int> map; |
3 | for (S line : toLinesFullTrim(loadSnippet(snippetID))) {
|
4 | L<S> tok = javaTokC(line); |
5 | if (l(tok) == 2 && isInteger(last(tok))) |
6 | map.put(toLower(first(tok)), parseInt(last(tok))); |
7 | } |
8 | ret map; |
9 | } |
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: | #1008390 |
| Snippet name: | loadSpellList - load list of words for levenAttract |
| Eternal ID of this version: | #1008390/2 |
| Text MD5: | cceae4f36266086e8963f0893894e726 |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-05-11 01:56:49 |
| Source code size: | 298 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 766 / 776 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |