☺唐鳳☻
and 1 contributors
    * open-set could be "start = object but true" and
      closed-set could be "start = object but false"
    * compare
        - tests
    * complete POD

    * mark as "internal" class

= NAME

Span::Functional - An object representing a single span, with a simple functional API.

= SYNOPSIS

  use Span:::Functional;

  $span = new( start => $start, end => $end, start_is_open => bool::false, end_is_open => bool::false );

= DESCRIPTION

This class represents a single span.

It is intended mostly for "internal" use by the Span class. For a more complete API, see `Span`.

= CONSTRUCTORS

- `new( start => $start, end => $end, start_is_open => bool::false, end_is_open => bool::false )`

The `start` value must be less than or equal to `end`. There is no checking.

= OBJECT METHODS

The following methods are available for Span::Functional objects:

- `start()` / `end()`

Return the start or end value.

- `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.

If `start` and `end` are times, then `size` is a duration.

- union

- complement

- intersects

- intersection

- stringify

- compare

= AUTHOR

Flavio S. Glock, <fglock@pucrs.br>

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

Around line 218:

Unknown directive: =kwid