Transpiled version (44L) is out of date.
1 | sS stringFromRepF(IF0<Char> f, int n) { |
2 | char[] buf = new char[n]; |
3 | for i to n: |
4 | buf[i] = f!; |
5 | ret str(buf); |
6 | } |
7 | |
8 | sS stringFromRepF(int n, IF0<Char> f) { |
9 | ret stringFromRepF(f, n); |
10 | } |
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: | #1028497 |
Snippet name: | stringFromRepF - make string from repeatedly calling function yielding a char |
Eternal ID of this version: | #1028497/3 |
Text MD5: | 5bf5e53f76ab5824d9a1276cc262bdb4 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-01-26 11:55:57 |
Source code size: | 192 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 210 / 322 |
Version history: | 2 change(s) |
Referenced in: | [show references] |