A way to show data in tabular form
Tabular is a Scala library that provides extension methods for structured data, such as the Scala collections.
It's the Scala library equivalent of the vim plugin Tabular.
Here's are few examples of things you can do with
- Showing maps, multimaps, collection of products and matrices:
- Show the transitive dependencies in a play app:
Add this to your sbt build definitions, such as in
libraryDependencies += "com.dwijnand" %% "tabular" % "0.1.0"
For other build systems see the dependency information on Maven Central:
- For Scala 2.11: http://search.maven.org/#artifactdetails|com.dwijnand|tabular_2.11|0.1.0|jar
- For Scala 2.10: http://search.maven.org/#artifactdetails|com.dwijnand|tabular_2.10|0.1.0|jar
showkvon your maps to view the key-value pairs
showkvson your multimaps (maps where the value is a collection) to view the key-values pairs
tabularon your collections specifying the columns you want in tabular form
showPson your collection of products to view their properties
showMon your matrix (a collection of collections) to view your matrix
- Scala 2.11.x or 2.10.x
Copyright 2015-2016 Dale Wijnand
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.