= NAME
Set::Infinite::Functional - An object representing an ordered set of spans.
= SYNOPSIS
use Set::Infinite::Functional; # XXX
= DESCRIPTION
This class represents an ordered set of spans.
It is intended mostly for "internal" use by the Set::Infinite class. For a more complete API, see `Set::Infinite`.
= CONSTRUCTORS
- `new()`
Creates an empty set.
- `new( spans => @spans )`
Creates a set containing zero or more `Span` objects.
The array of spans must be ordered, and the spans must not intersect with each other.
- empty_set()
- universal_set()
= OBJECT METHODS
# XXX
- `start()` / `end()`
Return the start or end value of the span.
These methods may return nothing if the span is empty.
- `start_is_open()` / `end_is_open()` / `start_is_closed()` / `end_is_closed()`
Return a logical value, whether the `start` or `end` values belong to the span ("closed") or not ("open").
- size()
Return the "size" of the span.
For example: if `start` and `end` are times, then `size` will be a duration.
- `intersects( $set )`
This method return a logical value.
- union( $set ) / intersection( $set )
- complement()
- intersects( $set )
- difference( $set )
- stringify()
- compare
- is_empty()
- is_infinite()
- `spans()`
Returns a list of `Span` objects.
= AUTHOR
Flavio S. Glock, <fglock@gmail.com>
= COPYRIGHT
Copyright (c) 2005, Flavio S. Glock. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
1 POD Error
The following errors were encountered while parsing the POD:
Unknown directive: =kwid
To install Perl6::Pugs, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perl6::Pugs
CPAN shell
perl -MCPAN -e shell install Perl6::Pugs
For more information on module installation, please visit the detailed CPAN module installation guide.