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

Re: takeWhile ?

Thread Previous | Thread Next
From:
Timo Paulssen
Date:
September 11, 2017 20:17
Subject:
Re: takeWhile ?
Message ID:
510ab78e-eb25-d2a3-4e12-485535a1b171@wakelift.de
the first expression uses ^ as a prefix operator on *, so it gives you
"a list of numbers 0 through * - 1" instead of "the number *" to compare
against *, so it's as if you had rounded the value up before comparing to 2.

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