Date::Dump::Tree::MultiColums - Tabulates lists of text

NAME

Date::Dump::Tree::MultiColums - Tabulates lists of text

SYNOPSIS

use Data::Dump::Tree::Horizontal ;

display_columns <1 2 3>, my_get_lines(), :named_option, ...

See examples/two_colums in the distribution for multiple examples

Given a list of string lists, return a tabulated version of the input lists.

use Data::Dump::Tree ;
	use Data::Dump::Tree::MultiColumns ;
display_columns <line other_line>, get_dump_lines_integrated([6..12]), 1..6, :width(20) ;
Output:
line                 [7] @0               1
	other_line           ā”œ 0 = 6.Int          2
			     ā”œ 1 = 7.Int          3
			     ā”œ 2 = 8.Int          4
			     ā”œ 3 = 9.Int          5
			     ā”œ 4 = 10.Int         6
			     ā”œ 5 = 11.Int
			     ā”” 6 = 12.Int

INTERFACE

  • sub display_columns($text_list, $text_list, ... , Int :total_width, Int :width, Bool :compact --> Str)

'say's the rendered text

  • sub get_columns($text_list, $text_list, ... , Int :total_width, Int :width, Bool :compact --> Str)

Returns the rendered text

Arguments

  • list of text lists

Both subs take a variable number of string lists

  • :total_width

The maximum width of the output, multiple rows of columns will be generated if necessary

  • :width

The minimum width of each colum

  • :compact

Set the width of each column to fit the column's content. It will override :width

AUTHOR

Nadim ibn hamouda el Khemir https://github.com/nkh

LICENSE

This program is free software; you can redistribute it and/or modify it under the same terms as Perl6 itself.

SEE-ALSO

Data::Dump::Tree

) }

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.