Libraryless. Click here for Pure Java version (1648L/11K).
1 | static Component[] asComponentArray(Collection<? extends Component> c) {
|
2 | Component[] a = new Component[l(c)]; |
3 | Iterator<? extends Component> it = c.iterator(); |
4 | for (int i = 0; i < l(a); i++) |
5 | a[i] = it.next(); |
6 | ret a; |
7 | } |
Began life as a copy of #1001235
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1024548 |
| Snippet name: | asComponentArray |
| Eternal ID of this version: | #1024548/2 |
| Text MD5: | 6f6f2852b2b76e57112757212db93484 |
| Transpilation MD5: | 59bb8c16fc6cd2c03b91905f3b2de146 |
| Author: | stefan |
| Category: | |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-08-18 00:10:57 |
| Source code size: | 234 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 444 / 579 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |