1 | static <A> L<A> nthColumn(LL<A> matrix, int idx) {
|
2 | new L<A> l; |
3 | for (L<A> row : matrix) |
4 | l.add(get(row, idx)); |
5 | ret l; |
6 | } |
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: | #1010951 |
| Snippet name: | nthColumn |
| Eternal ID of this version: | #1010951/1 |
| Text MD5: | 0052caf85034d0065035d9aa4057088f |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-10-10 01:09:02 |
| Source code size: | 132 bytes / 6 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 596 / 677 |
| Referenced in: | [show references] |