1 | // returns (row, col) or null |
2 | static <A> Pair<Int, Int> indexOfIndexOf(LL<A> l, A a) {
|
3 | for i over l: {
|
4 | int j = l.get(i).indexOf(a); |
5 | if (j >= 0) ret pair(i, j); |
6 | } |
7 | null; |
8 | } |
9 | |
10 | static Pair<Int, Int> indexOfIndexOf(L<S> l, char a) {
|
11 | for i over l: {
|
12 | int j = l.get(i).indexOf(a); |
13 | if (j >= 0) ret pair(i, j); |
14 | } |
15 | null; |
16 | } |
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: | #1008956 |
| Snippet name: | indexOfIndexOf |
| Eternal ID of this version: | #1008956/2 |
| Text MD5: | 953c3892950783a161b2b62add5ac887 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-06-20 01:09:48 |
| Source code size: | 351 bytes / 16 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 639 / 702 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |