develooper Front page | perl.perl6.users | Postings from September 2017

Re: takeWhile ?

Thread Previous | Thread Next
From:
Marc Chantreux
Date:
September 11, 2017 20:14
Subject:
Re: takeWhile ?
Message ID:
20170911201415.GA31897@home.u-strasbg.fr
On Mon, Sep 11, 2017 at 10:07:32PM +0200, Timo Paulssen wrote:
> If I understand your problem correctly, you can simply use ...^ to leave
> out the last element :)

wow ... i tried it once but failed. and now i just spotted the error: 

i wrote 

	(116, * * .6  ... ^ * < 2 ).say

instead of 

	(116, * * .6  ...^ * < 2 ).say

the first expression is valid and i don't know what is does.
the first expression is valid *and correct*.

thank you!

-- 
Marc Chantreux (eiro on github and freenode)
http://eiro.github.com/
http://eiro.github.com/atom.xml
"Don't believe everything you read on the Internet"
    -- Abraham Lincoln

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About