Libraryless. Click here for Pure Java version (83L/1K).
static S pad(O s, int l) { ret pad(s, l, ' '); } static S pad(O s, int l, char c) { S _s = str(s); if (lengthOfString(_s) >= l) ret _s; ret rep(c, l-lengthOfString(_s)) + _s; }
Began life as a copy of #1002634
download show line numbers debug dex
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, whxojlpjdney
No comments. add comment
Snippet ID: | #1009103 |
Snippet name: | pad - pad (move contents to the right) |
Eternal ID of this version: | #1009103/5 |
Text MD5: | 554d545051757832f00e87bcd462938e |
Transpilation MD5: | 4142b00078612d0eab25b1d09e00a094 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-03-26 13:31:40 |
Source code size: | 193 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 338 / 390 |
Version history: | 4 change(s) |
Referenced in: | [show references] |
Formerly at http://tinybrain.de/1009103 & http://1009103.tinybrain.de