Transpiled version (4937L) is out of date.
1 | static L<Int> powersOfTwoUpTo(int firstPowerOfTwo default 1, int n) { |
2 | new IntBuffer l; |
3 | int i = firstPowerOfTwo; |
4 | while (i <= n && i > 0) { |
5 | l.add(i); |
6 | i *= 2; |
7 | } |
8 | ret l.asVirtualList(); |
9 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033690 |
Snippet name: | powersOfTwoUpTo |
Eternal ID of this version: | #1033690/2 |
Text MD5: | daf77af51f22c93ec0754cfca80a86d0 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-04-30 14:07:12 |
Source code size: | 208 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 136 / 212 |
Version history: | 1 change(s) |
Referenced in: | [show references] |