Libraryless. Click here for Pure Java version (9182L/51K).
static L<Long> wrapLongArrayAsList(long[] l) { ret new RandomAccessAbstractList<Long>() { public int size() { ret l.length; } public Long get(int i) { ret l[i]; } public Long set(int i, Long val) { Long a = l[i]; l[i] = val; ret a; } }; }
Began life as a copy of #1035682
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
Snippet ID: | #1036162 |
Snippet name: | wrapLongArrayAsList - mutable |
Eternal ID of this version: | #1036162/3 |
Text MD5: | f64f345efcd2423bade90e59142ab892 |
Transpilation MD5: | 8c2623a5ab910f142026101565e34a90 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-10-03 19:33:10 |
Source code size: | 286 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 130 / 177 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |