tabular

A way to show data in tabular form

License

License

Categories

Categories

JNA Development Tools Native Tabula Data PDF
GroupId

GroupId

com.dwijnand
ArtifactId

ArtifactId

tabular_2.10
Last Version

Last Version

0.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

tabular
A way to show data in tabular form
Project URL

Project URL

https://github.com/dwijnand/tabular
Project Organization

Project Organization

com.dwijnand
Source Code Management

Source Code Management

https://github.com/dwijnand/tabular

Download tabular_2.10

How to add to project

<!-- https://jarcasting.com/artifacts/com.dwijnand/tabular_2.10/ -->
<dependency>
    <groupId>com.dwijnand</groupId>
    <artifactId>tabular_2.10</artifactId>
    <version>0.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.dwijnand/tabular_2.10/
implementation 'com.dwijnand:tabular_2.10:0.1.0'
// https://jarcasting.com/artifacts/com.dwijnand/tabular_2.10/
implementation ("com.dwijnand:tabular_2.10:0.1.0")
'com.dwijnand:tabular_2.10:jar:0.1.0'
<dependency org="com.dwijnand" name="tabular_2.10" rev="0.1.0">
  <artifact name="tabular_2.10" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.dwijnand', module='tabular_2.10', version='0.1.0')
)
libraryDependencies += "com.dwijnand" % "tabular_2.10" % "0.1.0"
[com.dwijnand/tabular_2.10 "0.1.0"]

Dependencies

compile (1)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.10.6

test (1)

Group / Artifact Type Version
com.lihaoyi : utest_2.10 jar 0.3.1

Project Modules

There are no modules declared in this project.

Tabular Apache 2 badge

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 tabular:

  • Showing maps, multimaps, collection of products and matrices:

  • Show the transitive dependencies in a play app:

Setup

Add this to your sbt build definitions, such as in build.sbt:

libraryDependencies += "com.dwijnand" %% "tabular" % "0.1.0"

For other build systems see the dependency information on Maven Central:

Usage

  1. Add import tabular._
  2. Invoke:
    • showkv on your maps to view the key-value pairs
    • showkvs on your multimaps (maps where the value is a collection) to view the key-values pairs
    • tabular on your collections specifying the columns you want in tabular form
    • showPs on your collection of products to view their properties
    • showM on your matrix (a collection of collections) to view your matrix

Example:

Dependencies

  • Scala 2.11.x or 2.10.x

Licence

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

http://www.apache.org/licenses/LICENSE-2.0

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.

Versions

Version
0.1.0