- or download this
use strict;
...
}
print "@{ [ functional_FY( 1..10 ) ] }\n";
- or download this
sub functional_FY {
return @_ if @_ < 2;
return ( splice( @_, rand @_, 1 ), &functional_FY );
}
- or download this
sub functional_FY {
return @_ < 2 ? @_ : ( splice( @_, rand @_, 1 ), &functional_FY );
}