The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Data::Focus::Applicative::Const - Const applicative functor for Data::Focus

DESCRIPTION

Internal use only.

A Data::Focus::Applicative class for Haskell's Constant applicative functor.

This is an abstract class. Subclasses must implement mempty() and mconcat() class methods, which define the Monoid behind this class.

CLASS METHODS

build

pure

create_part_mapper

See Data::Focus::Applicative.

$f_datum = Data::Focus::Applicative::Const->new($datum)

The constuctor. The $f_datum keeps $datum inside.

$monoid = Data::Focus::Applicative::Const->mempty()

Must be implemented in subclasses.

$monoid = Data::Focus::Applicative::Const->mconcat(@monoids)

Must be implemented in subclasses.

OBJECT METHODS

$datum = $f_datum->get_const()

Get the $datum passed in new() method.

AUTHOR

Toshio Ito, <toshioito at cpan.org>