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

yurivish picture yurivish  路  3Comments

Keno picture Keno  路  3Comments

dpsanders picture dpsanders  路  3Comments

StefanKarpinski picture StefanKarpinski  路  3Comments

iamed2 picture iamed2  路  3Comments