Libraryless. Click here for Pure Java version (70L/1K).
1 | meta-for float also as double, byte, bool, short, int, long { |
2 | static float arrayGet(float[] array, int i) { |
3 | ret array[i]; |
4 | } |
5 | } |
6 | |
7 | static <A> A arrayGet(A[] array, int i) { |
8 | ret array == null ?: array[i]; |
9 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): elmgxqgtpvxh, mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
Snippet ID: | #1035875 |
Snippet name: | arrayGet |
Eternal ID of this version: | #1035875/4 |
Text MD5: | d817cbc27f7bf6fd8f3d4e5627a362a8 |
Transpilation MD5: | 599ba04faf48580ed7d1ecc63bd5a08f |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2025-05-10 22:37:02 |
Source code size: | 219 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 255 / 345 |
Version history: | 3 change(s) |
Referenced in: | [show references] |