Transpiled version (74L) is out of date.
static S rpad(S s, int l) { ret rpad(s, l, ' '); } static S rpad(S s, int l, char c) { ret lengthOfString(s) >= l ? s : s + rep(c, l-lengthOfString(s)); } static S rpad(int l, S s) { ret rpad(s, 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: | #1002634 |
| Snippet name: | rpad - pad (append empty characters) |
| Eternal ID of this version: | #1002634/6 |
| Text MD5: | 49be1b498e5eacb3f1f3d11b2f7a6a7f |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-10-03 12:11:14 |
| Source code size: | 218 bytes / 11 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 982 / 1027 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |