Help for this page

Select Code to Download


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