Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: [Perl6] Seq iterator already consumed

by duelafn (Parson)
on Jun 17, 2019 at 13:36 UTC ( #11101467=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @paths = data();
    my @dirs.push: $_.split('/') for @paths;    # A : @dirs == [(...).Seq,
    + (...).Seq]
    say $_.join('/') for @dirs;                 # C : @dirs == [Seq.new-co
    +nsumed(), Seq.new-consumed()]
    my $depth = @dirs.map(*.elems).min;         # D : oops, consumed!
    
  2. or download this
    my @dirs.push: [ $_.split('/') ] for @paths;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2022-09-27 18:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (123 votes). Check out past polls.

    Notices?