News for hackers. Stuff that matters.
Re:Ask HN: When do you use a library vs. implement something... by Thiez on Friday April 20, 2018 @11:29AM (#16885563)
Which programming language are you using that has left-pads functionality in the standard library?
Re:Ask HN: When do you use a library vs. implement something... by mort96 on Friday April 20, 2018 @01:57PM (#16886971)
Well, python's strings have the ljust and rjust methods which left- and right-pad, and javascript has the padStart and padEnd methods (since ECMAScript 2017).
Re:Ask HN: When do you use a library vs. implement something... by scarface74 on Friday April 20, 2018 @07:09PM (#16889044)