Julia: Unify lpad, rpad and cpad and move to external package

Created on 6 Jun 2017  Â·  4Comments  Â·  Source: JuliaLang/julia

lpad, rpad and cpad would seem to be good candidates to be unified in a pad function.

There are a lot of such string manipulation functions that feel like they should be moved from Base to a string manipulation package.

strings

Most helpful comment

We could always just use https://api.left-pad.io/

All 4 comments

I don't see any benefit in moving short, pure, julia code that is generally useful to a package.

I could see us making an official Strings module that would still be apart of Base/StdLib, but yeah, a lot of these functions are usually expected to be in the "default" language.

We could always just use https://api.left-pad.io/

I don't think this will be moved out of this repo. Perhaps to a String stdlib as part of https://github.com/JuliaLang/julia/pull/25416

Was this page helpful?
0 / 5 - 0 ratings

Related issues

omus picture omus  Â·  3Comments

ararslan picture ararslan  Â·  3Comments

StefanKarpinski picture StefanKarpinski  Â·  3Comments

tkoolen picture tkoolen  Â·  3Comments

manor picture manor  Â·  3Comments