October 2014
Intermediate to advanced
280 pages
7h 20m
English
Write a function that takes a list of dqs and prints each on a separate line, centered in a column that has the width of the longest string. Make sure it works with UTF characters.
| | iex> center(["cat", "zebra", "elephant"]) |
| | cat |
| | zebra |
| | elephant |
Read now
Unlock full access