Back in Elixir 1.2, String.rjust and String.ljust add padding to strings. They show in the REPL, but then when I looked for docs on them, there weren't any.
I see that these are deprecated -- Google led me to the source code when I couldn't find them in the documentation.
Please in those comments can we say which functions to use instead?
The 1.2 API is significant because the PragProg book will not update past Elixir 1.2; to get Elixir 1.3 or later I have to pay another $25. So, my 1.2 copy was fully updated but led me astray, and then I struggled to find what to do instead.
pad_leading and pad_trailing are much better names, agree. It would have helped to see those names in the comments deprecating rjust.