// returns (row, col) or null static <A> Pair<Int, Int> indexOfIndexOf(LL<A> l, A a) { for i over l: { int j = l.get(i).indexOf(a); if (j >= 0) ret pair(i, j); } null; } static Pair<Int, Int> indexOfIndexOf(L<S> l, char a) { for i over l: { int j = l.get(i).indexOf(a); if (j >= 0) ret pair(i, j); } null; }
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: | 638 / 700 | 
| Version history: | 1 change(s) | 
| Referenced in: | [show references] |