Re: for and ^ question

2020-12-31 Thread William Michels via perl6-users
On Wed, Dec 30, 2020 at 7:20 PM ToddAndMargo via perl6-users wrote: > > On 12/30/20 7:06 PM, yary wrote: > > Look up ..^ which is the long form of ^ when used in ^8 sort of thing > > > > https://docs.raku.org/routine/..$CIRCUMFLEX_ACCENT > > > >

Re: for and ^ question

2020-12-31 Thread Andy Bach
> try out these 3 .. 7 3 ..^ 7 3 ^.. 7 3 ^..^ 7 Is the last one called the kitten or the bat operator? ;-> Happy New Year to all those for whom the year ends tonight. For the rest Happy Tomorrow! From: yary Sent: Wednesday, December 30, 2020 9:06 PM To: ToddAndM

Re: Checking for nil return

2020-12-31 Thread yary
Moving the "can't catch Nil return, why is Nil also a failure?" question to a Raku issue, https://github.com/Raku/doc/issues/3760 This got me going through Raku source code to see where Nil gets passed through; this looks promising. rakudo/src/vm/moar/spesh-plugins.nqp line 308

Re: for and ^ question

2020-12-31 Thread Brad Gilbert
It does not look like an array from 0 to ($nCount - 1). It only iterates like that. It is a Range object from 0 to $nCount excluding $nCount. ^9 === Range.new( 0, 9, :excludes-max ) # True 0 ~~ ^9 # True 1 ~~ ^9 # True 0.5 ~~ ^9 # True 8 ~~ ^9 # True 8.9 ~~ ^9 # True

Re: Checking for nil return

2020-12-31 Thread Darren Duncan
On 2020-12-29 6:26 a.m., Ruud H.G. van Tol wrote: Basically, never mix error-state and return-value. Rather use a different channel/dimension for each. Such a separation can't be absolute though. One needs to be able to user-define routines that implement additional generic Failure related fe

Re: for and ^ question

2020-12-31 Thread ToddAndMargo via perl6-users
On 12/31/20 7:44 AM, William Michels via perl6-users wrote: There's an open Github issue on the interaction between Seqs and carets: https://github.com/rakudo/rakudo/issues/3881 Scroll down to the section entitled, "EDIT 08/29/2020 -- TL;DR Version" for the crux of the issue. > 8 ... ^16 #

ezmlm warning

2020-12-31 Thread perl6-users-help
Hi! This is the ezmlm program. I'm managing the perl6-us...@perl.org mailing list. I'm working for my owner, who can be reached at perl6-users-ow...@perl.org. Messages to you from the perl6-users mailing list seem to have been bouncing. I've attached a copy of the first bounce message I received

Re: for and ^ question

2020-12-31 Thread ToddAndMargo via perl6-users
On 12/31/20 1:56 PM, Brad Gilbert wrote: It does not look like an array from 0 to ($nCount - 1). It only iterates like that. It is a Range object from 0 to $nCount excluding $nCount.     ^9 === Range.new( 0, 9, :excludes-max ) # True     0 ~~ ^9 # True     1 ~~ ^9 # True     0.5 ~~ ^9 # Tr

Re: for and ^ question

2020-12-31 Thread ToddAndMargo via perl6-users
On 12/30/20 5:39 PM, ToddAndMargo via perl6-users wrote: Hi All, In the following for loop:     for ^$nCount -> $i { What is the ^ doing? Confused again, -T With wonderful explanations for many others, my notes: ^ note: ^3 means the integer "just before" 3 (zero is presume to be the st

Re: for and ^ question

2020-12-31 Thread ToddAndMargo via perl6-users
On 12/31/20 1:56 PM, Brad Gilbert wrote: just before Hi Brad, Believe it or not, things fell into place with just those two word from your letter. Excellent! -T

Re: for and ^ question

2020-12-31 Thread Kevin Pye
> > ^ note: ^3 means the integer "just before" 3 (zero is presume to be the > start point) > > 3^ means the integer "just after" 3 (an ending point is > required) > No, it does not. Go back and read what Brad wrote; he was quite explicit. Nothing about the range 0 ..^ 3 (for which "^3

Re: for and ^ question

2020-12-31 Thread ToddAndMargo via perl6-users
^ note: ^3 means the integer "just before" 3 (zero is presume to be the start point) 3^ means the integer "just after" 3 (an ending point is required) On 12/31/20 10:15 PM, Kevin Pye wrote: No, it does not. Go back and read what Brad wrote; he was quite explicit.

Re: for and ^ question

2020-12-31 Thread ToddAndMargo via perl6-users
^ note: ^3 means the integer "just before" 3 (zero is presume to be the start point) 3^ means the integer "just after" 3 (an ending point is required) On 12/31/20 10:15 PM, Kevin Pye wrote: No, it does not. Go back and read what Brad wrote; he was quite explicit.