Libraryless. Click here for Pure Java version (2253L/14K).
1 | static ItIt<short[]> shortArrayChunksIterator(short[] l, int chunkSize) { |
2 | ret iteratorFromFunction(new IF0<short[]>() { |
3 | int n = l(l), i; |
4 | |
5 | public short[] get() { |
6 | if (i >= n) null; |
7 | i += chunkSize; |
8 | ret subShortArray(l, i-chunkSize, i); |
9 | } |
10 | }); |
11 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1026949 |
Snippet name: | shortArrayChunksIterator |
Eternal ID of this version: | #1026949/2 |
Text MD5: | e6f792f78bcb79dc37eb8504fbb50d03 |
Transpilation MD5: | 708557b86b3f392af00821b070c04abe |
Author: | stefan |
Category: | javax / audio |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-02-03 14:18:31 |
Source code size: | 288 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 239 / 322 |
Version history: | 1 change(s) |
Referenced in: | [show references] |