prep next release
[gitmo/Moose-Autobox.git] / lib / Moose / Autobox / Code.pm
index e19ee54..14c07a3 100644 (file)
@@ -2,7 +2,7 @@ package Moose::Autobox::Code;
 use Moose::Role 'with';
 use Moose::Autobox;
 
-our $VERSION = '0.02';
+our $VERSION = '0.13';
 
 with 'Moose::Autobox::Ref';
 
@@ -32,6 +32,8 @@ sub conjoin {
        return sub { $f->(@_) && $f2->(@_) }    
 }
 
+# fixed point combinators
+
 sub u {
     my $f = shift;
     sub { $f->($f, @_) };
@@ -39,15 +41,9 @@ sub u {
 
 sub y {
     my $f = shift;
-    (sub { my $h = shift; sub { $f->(($h->u())->())->(@_) } }->u())->();
+    (sub { my $h = shift; sub { $f->(($h->u)->())->(@_) } }->u)->();
 }
 
-#sub dump {
-    #my ($self) = @_;
-    #require Data::Dump::Streamer;
-    #return Data::Dump::Streamer::Dump($self)->Out();
-#}
-
 1;
 
 __END__
@@ -124,6 +120,8 @@ This implements the U combinator.
 
 =item L<http://en.wikipedia.org/wiki/Fixed_point_combinator>
 
+=item L<http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/20469>
+
 =back
 
 =head1 BUGS
@@ -138,7 +136,7 @@ Stevan Little E<lt>stevan@iinteractive.comE<gt>
 
 =head1 COPYRIGHT AND LICENSE
 
-Copyright 2006 by Infinity Interactive, Inc.
+Copyright 2006-2008 by Infinity Interactive, Inc.
 
 L<http://www.iinteractive.com>