1 | static Map<S, Int> ai_indexToNr_map = litcimap( |
2 | "first", 1, |
3 | "second", 2, |
4 | "third", 3, |
5 | "fourth", 4, |
6 | "fifth", 5, |
7 | "sixth", 6, |
8 | "seventh", 7, |
9 | "eighth", 8, |
10 | "ninth", 9, |
11 | "tenth", 10); |
12 | |
13 | static Int ai_indexToNr(S s) { |
14 | ret mapGet(ai_indexToNr_map, s); |
15 | } |
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: | #1012506 |
Snippet name: | ai_indexToNr |
Eternal ID of this version: | #1012506/3 |
Text MD5: | 36956f6b6e50868851573e51124051cf |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-12-05 15:58:32 |
Source code size: | 279 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 409 / 471 |
Version history: | 2 change(s) |
Referenced in: | [show references] |