static int clampToLength(int length, int i) { ret clamp(i, 0, length-1); }
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): elmgxqgtpvxh, mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
| Snippet ID: | #1036165 |
| Snippet name: | clampToLength - clamp to [0, n) |
| Eternal ID of this version: | #1036165/1 |
| Text MD5: | 977eba607a30633b214d17b64c183838 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-10-04 14:34:39 |
| Source code size: | 78 bytes / 3 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 328 / 354 |
| Referenced in: | [show references] |