package Moose::Autobox::Code;
use Moose::Role 'with';
-use autobox;
+use Moose::Autobox;
-our $VERSION = '0.01';
+our $VERSION = '0.02';
with 'Moose::Autobox::Ref';
return sub { $f->(@_) && $f2->(@_) }
}
+#sub dump {
+ #my ($self) = @_;
+ #require Data::Dump::Streamer;
+ #return Data::Dump::Streamer::Dump($self)->Out();
+#}
+
1;
__END__
use autobox;
my $adder = sub { $_[0] + $_[1] };
-
- $add_2 = $adder->curry(2);
+ my $add_2 = $adder->curry(2);
$add_2->(2); # returns 4
=head1 DESCRIPTION
+This is a role to describe operations on the Code type.
+
=head1 METHODS
=over 4
-=item B<meta>
+=item B<curry (@values)>
+
+=item B<rcurry (@values)>
-=item B<curry>
+=item B<conjoin (\&sub)>
-=item B<rcurry>
+=item B<disjoin (\&sub)>
-=item B<conjoin>
+=item B<compose (@subs)>
-=item B<disjoin>
+This will take a list of C<@subs> and compose them all into a single
+subroutine where the output of one sub will be the input of another.
-=item B<compose>
+=back
+
+=over 4
+
+=item B<meta>
=back
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
-=cut
\ No newline at end of file
+=cut