Transpiled version (5049L) is out of date.
1 | static <A> L<A> rowToList(Matrix<A> m, int y) {
|
2 | if (m == null) null; |
3 | rangeCheck(y, m.getHeight()); |
4 | int w = m.getWidth(); |
5 | |
6 | ret new RandomAccessAbstractList<A>() {
|
7 | public int size() { ret w; }
|
8 | |
9 | public A get(int x) {
|
10 | ret m.get(x, y); |
11 | } |
12 | |
13 | public A set(int x, A val) {
|
14 | A old = m.get(x, y); |
15 | m.set(x, y, val); |
16 | ret old; |
17 | } |
18 | }; |
19 | } |
Began life as a copy of #1033394
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1033395 |
| Snippet name: | rowToList |
| Eternal ID of this version: | #1033395/3 |
| Text MD5: | 235010ee5b816e8e0bfffe63a7337bda |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-10-27 01:49:20 |
| Source code size: | 399 bytes / 19 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 470 / 560 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |