3 ms·
https://github.com/JohnEarnest/ok/blob/gh-pages/docs/Fromk5Tok6.md https://github.com/JohnEarnest/ok/blob/gh-pages/docs/Fromk5T...: Padding Can Truncate (Done)
by feelin_googley 9y ago
https://github.com/JohnEarnest/ok/blob/gh-pages/docs/Fromk5Tok6.md https://github.com/JohnEarnest/ok/blob/gh-pages/docs/Fromk5T...:
Padding Can Truncate (Done)
In k5, padding was treated as a minimum size for the output string:
2$"abcde"
"ab"
6$"abcde"
"abcde "
In k6, as in older Ks, padding will produce a string with an exact length, truncating if necessary:
2$"abcde"
"ab"
6$"abcde"
"abcde "
Is this correct?
/ k4
6$"abcde"
"abcde "
2$"abcde"
"ab"
/ k2
6$"abcde"
" abcde"
2$"abcde"
"de"