Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: 99 Problems in Perl6

by Ovid (Cardinal)
on Dec 15, 2006 at 22:29 UTC ( [id://590135]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $compress = sub ($x) {
        state $previous;
        $x ne $previous ?? $previous = $x !! return;
    }
    
  2. or download this
    compress :: Eq a => [a] -> [a]
    compress = map head . group
    
  3. or download this
    my $compress = sub ($x) {
        state $previous;
        return $x ne $previous ?? $previous = $x !! ();
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://590135]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-04-23 06:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found