Graphics::Grid::UnitList - List of UnitLikes
version 0.001
use Graphics::Grid::UnitList; my $ul1 = Graphics::Grid::UnitList->new($u1, $u2, ...);
You would mostly never directly use this class. Usually you could get a UnitList object by the append method.
append
# at least one of $u1 and $u2 is a UnitArithmetic object my $ul2 = $u1->append($u2);
Number of effective values in the object.
This is an alias of elems().
elems()
Slice by indices.
Returns a string representing the object.
Sum the effective unit vector in a unit object.
Append two UnitLike objects. If both are Graphics::Grid::Unit objects, this method would return a Graphics::Grid::Unit object. Otherwise, it would return a Graphics::Grid::UnitList object.
Insert another UnitLike object after index $after. Insert before first element if after is a negative value.
$after
after
Graphics::Grid
Graphics::Grid::UnitLike
Stephan Loyd <sloyd@cpan.org>
This software is copyright (c) 2018-2023 by Stephan Loyd.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Graphics::Grid, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Graphics::Grid
CPAN shell
perl -MCPAN -e shell install Graphics::Grid
For more information on module installation, please visit the detailed CPAN module installation guide.