static L<Bits> bitsFullChunks(Bits bits, int width) { int n = bits.n/width; // leave last chunk if too small new L<Bits> l; for i to n: l.add(subBits(bits, i*width, (i+1)*width)); ret l; }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1006142 |
| Snippet name: | bitsFullChunks |
| Eternal ID of this version: | #1006142/1 |
| Text MD5: | c757e0a559a1f2a497ecc7486da583a1 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2016-12-21 16:14:57 |
| Source code size: | 208 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 628 / 664 |
| Referenced in: | [show references] |