static S padLeft(S s, char c, int n) { ret rep(c, n-l(s)) + s; } // default to space static S padLeft(S s, int n) { ret padLeft(s, ' ', n); }
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1003421 |
Snippet name: | padLeft |
Eternal ID of this version: | #1003421/1 |
Text MD5: | fd01387c3d9f2304a53c1221884a33b0 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-12-29 01:16:46 |
Source code size: | 153 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 568 / 1354 |
Referenced in: | [show references] |