Releases: ShawnBaek/Table
Releases · ShawnBaek/Table
Add support for non-square 2D Array tables with headers
Wrapping function into stream generic
Support iPad Playground Book
Fix Typo
Add Unit Test
Merge pull request #3 from ShawnBaek/UnitTest Add Unit Test
Support fillEqually
The default distribution is fillProportionally
.
print(table: ["Good", "Very Good", "Happy", "Cool!"], header: ["Wed", "Thu", "Fri", "Sat"])
+----+---------+-----+-----+
|Wed |Thu |Fri |Sat |
+----+---------+-----+-----+
|Good|Very Good|Happy|Cool!|
+----+---------+-----+-----+
But It can be set by fillEqually
like below
print(table: ["Good", "Very Good", "Happy", "Cool!"], header: ["Wed", "Thu", "Fri", "Sat"], distribution: .fillEqually)
+---------+---------+---------+---------+
|Wed |Thu |Fri |Sat |
+---------+---------+---------+---------+
|Good |Very Good|Happy |Cool! |
+---------+---------+---------+---------+
Change default spacing
use fill
First Release Version
Table is helper function to print table.
Support data type is Int, Double, and String.
- 1D Array
- 2D Array
- Dictionary
Support header of table
Support terminator
v1.0 Release
Add Basic Test Cases