Data::Monad::Identity - The identity monad.
use Data::Monad::Identity; my $m = Data::Monad::Identity->new(3, 5)->map(sub { $_[0] + $_[1] }); print $m->value, "\n"; # 8
Data::Monad::Identity doesn't nothing. It just wraps values.
Makes the new value which represents @v.
Overrides methods of Data::Monad::Base::Monad.
Retrieves wrapped values from this object.
hiratara <hiratara {at} cpan.org>
Data::Monad::Base::Monad
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Data::Monad, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Monad
CPAN shell
perl -MCPAN -e shell install Data::Monad
For more information on module installation, please visit the detailed CPAN module installation guide.