1 | // position = 1 to 3 |
2 | static Symbol ai_getTriplePart(S tripleID, int position) {
|
3 | TripleWeb t = ai_getTriple(tripleID); |
4 | ret t == null ? null : tripleGet(t, position-1); |
5 | } |
6 | |
7 | // e.g. "bdmvnpnkmkoecjyt/a" |
8 | static Symbol ai_getTriplePart(S triplePartID) {
|
9 | L<S> l = splitAtSlash(triplePartID); |
10 | if (l(l) != 2) null; |
11 | S tripleID = first(l), pos = second(l); |
12 | int iPos = charDiff(lower(pos), 'a'); |
13 | TripleWeb t = ai_getTriple(tripleID); |
14 | ret t == null ? null : tripleGet(t, iPos); |
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: | #1013009 |
| Snippet name: | ai_getTriplePart |
| Eternal ID of this version: | #1013009/3 |
| Text MD5: | 16218e087dade9f317adada8a29e81eb |
| Author: | stefan |
| Category: | javax / chat |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-01-06 05:50:45 |
| Source code size: | 498 bytes / 15 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 578 / 611 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |