Re: RFE: contains documentation

2018-09-07 Thread ToddAndMargo
On 09/07/2018 05:08 PM, Curt Tilmes wrote: On Fri, Sep 7, 2018 at 7:59 PM ToddAndMargo <mailto:toddandma...@zoho.com>> wrote: >  From the page you linked to "Coerces the invocant and first argument to > Str <https://docs.perl6.org/type/Str>, and

Re: date conversions?

2018-09-07 Thread ToddAndMargo
On 09/07/2018 05:10 PM, Vadim Belman wrote: Anyway, often googling with 'perl6 ' might provide one with even more information than expected!  The only pain-in-the-*** I find with Perl 6 is that Googling it gives you hordes of Perl 5 hits. I am just going to do this: my %Month = (

Re: "contains" beginning, end?

2018-09-07 Thread ToddAndMargo
On 08/09/18 02:00, ToddAndMargo wrote: Hi All, Does "contains" have options for "at the start of" and "at the end" of matches? Many thanks, -T On 09/07/2018 05:01 PM, Timo Paulssen wrote: > It does not, but there are methods .starts-with and .ends-with

Re: RFE: contains documentation

2018-09-07 Thread ToddAndMargo
On 09/07/2018 06:25 PM, Curt Tilmes wrote: The documentation isn't a tutorial, but is still improving every day. For the function it is documenting, it had better be a tutorial. Otherwise, why would anyone other than a developer seek its input? Seriously. If you can't figure it out from the

Re: Perl 6 Design specification?

2018-09-11 Thread ToddAndMargo
ge compiler existing for the time being. Hope this helps JJ El mar., 11 sept. 2018 a las 10:04, ToddAndMargo (<mailto:toddandma...@zoho.com>>) escribió: Hi All, Is the Perl 6 design specification (the one the developers use) out there somewhere on the web that I could look

Re: Perl 6 Design specification?

2018-09-11 Thread ToddAndMargo
On 09/11/2018 02:50 AM, JJ Merelo wrote: Hi JJ, Yes it helps a bunch.  Thank you! Follow up: where would I find the design specifications for the functions? There's a search engine in design.perl.org , Got a ton of hits. But no joy. they should

how do I do this index in p6?

2018-09-11 Thread ToddAndMargo
Hi All, How do I clean this up for use with Perl 6? $ perl -E 'say index("abc", "z") == -1 ? "False" : "True"' False Many thanks, -T -- Yesterday it worked. Today it is not working. Windows is like that.

Please explain this to me

2018-09-11 Thread ToddAndMargo
multi method contains(Str:D: Cool:D $needle, Int(Cool:D) $pos) Okay, I know that Str is a string Cool is an object that can be treated as both a string and a number $needle is the second optional parameter What is "D"? $needle is optional, why is it not stated as "$needle?" How is

Perl 6 Design specification?

2018-09-11 Thread ToddAndMargo
Hi All, Is the Perl 6 design specification (the one the developers use) out there somewhere on the web that I could look at? Many thanks, -T

Re: how do I do this index in p6?

2018-09-11 Thread ToddAndMargo
On 09/11/2018 03:11 AM, Simon Proctor wrote: Why not use contains though? Because I am torturing myself. I am trying to learn what all this does. I love contains, start-with, and ends with. I need to learn this other stuff too.

Re: how do I do this index in p6?

2018-09-11 Thread ToddAndMargo
On 09/11/2018 02:57 AM, JJ Merelo wrote: perl6 -e 'say "abc".index("z") =:= Nil  ?? "False" !! "True"' -e runs the script from the CL https://github.com/rakudo/rakudo/wiki/Running-rakudo-from-the-command-line "abc" is on front (but it could be in the same way) index return Nil if it does not

Re: Please explain this to me

2018-09-11 Thread ToddAndMargo
On 09/11/2018 03:09 AM, ToddAndMargo wrote: multi method contains(Str:D: Cool:D $needle, Int(Cool:D) $pos) What the heck (not my exact word) is "multi method"? What is wrong with calling it a "function"?

Re: Please explain this to me

2018-09-11 Thread ToddAndMargo
On 09/11/2018 03:30 AM, JJ Merelo wrote: Also, "is no help whatsoever" is no help whatsoever. Saying what part of it is not clear enough, or could be explained better, is. Well now, > method ($a: @b, %c) {}; # first argument is the invocant 1) why is it a "method" and not a

A comparison between P5 docs and p6 docs

2018-09-11 Thread ToddAndMargo
Hi All, Not to beat a dead horse, but Perl 6's docs are miserably hard to understand. Here is a comparison of Perl 5's perldocs and Perl 6's docs: Perl 5: $ perldoc -f index index STR,SUBSTR,POSITION index STR,SUBSTR The index function searches for one string within another,

Re: Please explain this to me

2018-09-11 Thread ToddAndMargo
On 09/11/2018 03:22 AM, Timo Paulssen wrote: On 11/09/18 12:18, JJ Merelo wrote: El mar., 11 sept. 2018 a las 12:15, Timo Paulssen (>) escribió: The colon at the end of "Str:D:" signifies that it's a type constraint on what you call the method on. For

Functions and subroutines?

2018-09-11 Thread ToddAndMargo
Hi All, I use subs like ducks use water. It is about time I learned what to properly call them. I come from Modula2 and Pascal (as well as bash), "functions" return a value outside the declared parameters and "(sub)routines" only can modify values through the declarations parameters. Sort of

Re: Please explain this to me

2018-09-11 Thread ToddAndMargo
that should be fixed. I hope that helps!   - Timo On 11/09/18 12:09, ToddAndMargo wrote: multi method contains(Str:D: Cool:D $needle, Int(Cool:D) $pos) Okay, I know that    Str is a string    Cool is an object that can be treated as both a string and a number    $needle is the second optional pa

An interesting math formula to share

2018-07-10 Thread ToddAndMargo
Hi All, Remembering from my school days, a famous mathematician whose name I forget came up with a formula as a kid that made math history. As it transpires, when in school, they disciplined him by making his count all the number from 1 to some large number. It took him only a few minutes.

Re: An interesting math formula to share

2018-07-10 Thread ToddAndMargo
On 07/10/2018 02:47 AM, Shlomi Fish wrote: Hi Todd! On Tue, 10 Jul 2018 02:02:45 -0700 ToddAndMargo wrote: Hi All, Remembering from my school days, a famous mathematician whose name I forget came up with a formula as a kid that made math history. See https://en.wikipedia.org/wiki

Re: An interesting math formula to share

2018-07-10 Thread ToddAndMargo
On 07/10/2018 03:42 AM, Brian Duggan wrote: On Tuesday, July 10, ToddAndMargo wrote: $ echo "5" | p6 'my $N=slurp(); say $N*($N+1)/2;' 15 $ echo "6" | p6 'my $N=slurp(); say $N*($N+1)/2;' 21 $ echo "100" | p6 'my $N=slurp(); say $N*($N+1)/2;' 5050 Another c

Re: An interesting math formula to share

2018-07-11 Thread ToddAndMargo
On 2018-07-10 2:02 AM, ToddAndMargo wrote: Hi All, Remembering from my school days, a famous mathematician whose name I forget came up with a formula as a kid that made math history. As it transpires, when in school, they disciplined him by making his count all the number from 1 to some large

Re: how do I match the next two characters?

2018-01-22 Thread ToddAndMargo
On Fri, Jan 19, 2018 at 12:29 AM, Todd Chester > wrote: On 01/18/2018 05:17 PM, mimosinnet wrote: The '?' is not necessary Indeed! I use `.*?` when I do not want the wild card to be "greedy" When I have a

Re: A comparison between P5 docs and p6 docs

2018-09-11 Thread ToddAndMargo
On 09/11/2018 08:17 AM, Laurent Rosenfeld via perl6-users wrote: Hi Todd, I fully agree with Tom B.'s message that you should really set out to read a Perl 6 book. Many of the things you asked are covered in most of the available books. And the available books are easier than the official

Re: case insensitive "contains"?

2018-09-11 Thread ToddAndMargo
On 09/11/2018 03:53 PM, Trey Harris wrote: And my response to his response that also was unintentionally off-list. I got it. I will probably be writing it down later today in my documents. My failing was thinking rx was some kind of command I had not seen before. As soon as you showed me

!

2018-09-11 Thread ToddAndMargo
On 09/11/2018 10:14 AM, Larry Wall wrote: On Tue, Sep 11, 2018 at 02:42:20AM -0700, ToddAndMargo wrote: : How do I clean this up for use with Perl 6? : : $ perl -E 'say index("abc", "z") == -1 ? "False" : "True"' : False I'm a little bit surprise

Re: A comparison between P5 docs and p6 docs

2018-09-11 Thread ToddAndMargo
On 09/11/2018 04:53 AM, Tom Browder wrote: Todd, some free advice: 1. DOCUMENTATION The docs are a volunteer effort. You can help by contributing changes and submitting issues. Hi Tom, I have started contributing to this effort as well. One of the big hurdles is that those maintaining the

Re: A comparison between P5 docs and p6 docs

2018-09-11 Thread ToddAndMargo
On 09/11/2018 08:52 AM, Tom Browder wrote: On Tue, Sep 11, 2018 at 10:39 AM Parrot Raiser <1parr...@gmail.com> wrote: One of the paradoxes of documentation, and the teaching of many abstract topics, is that those with the most in-depth knowledge of the ... I agree with you for the most part.

Re: Please explain this to me

2018-09-11 Thread ToddAndMargo
On 09/11/2018 03:09 AM, ToddAndMargo wrote: multi method contains(Str:D: Cool:D $needle, Int(Cool:D) $pos) Okay, I know that    Str is a string    Cool is an object that can be treated as both a string and a number    $needle is the second optional parameter What is "D"

Re: Functions and subroutines?

2018-09-11 Thread ToddAndMargo
On 09/11/2018 10:35 AM, Larry Wall wrote: On Tue, Sep 11, 2018 at 03:47:46AM -0700, ToddAndMargo wrote: : In Perl, what is the proper terminology? We're not picky, since Perl has never made a hard and fast distinction between routines that return values and routines that don't. You can call

Re: how do I do this index in p6?

2018-09-11 Thread ToddAndMargo
On 09/11/2018 08:11 AM, yary wrote: "Nil... it's a constant, so you have to use =:= to check for equality." Constants? I thought we did not have constants! Am I mixing Perl 5 with Perl 6, again?

issues with zef

2018-03-12 Thread ToddAndMargo
Hi All, Help! How do I fix this? # rpm -qa rakudo\* rakudo-zef-0.1.30-1.fc27.x86_64 rakudo-0.2018.02.1-1.fc27.x86_64 # zef install Net::SMTP ===SORRY!=== Failed to open file /usr/lib64/perl6/site/dist/863D6AAB4F5E7259BA381C4EBE0F88BAA358090E: No such file or directory # ls -al

Re: issues with zef

2018-03-12 Thread ToddAndMargo
On 03/12/2018 01:13 AM, Steve Mynott wrote: On Sun, Mar 11, 2018 at 11:01:08PM -0700, ToddAndMargo typed: How do I fix this? # rpm -qa rakudo\* rakudo-zef-0.1.30-1.fc27.x86_64 rakudo-0.2018.02.1-1.fc27.x86_64 # zef install Net::SMTP ===SORRY!=== Failed to open file /usr/lib64/perl6/site/dist

Does words have a delimiter?

2018-04-13 Thread ToddAndMargo
Hi All, I am over on https://docs.perl6.org/routine/words and I can't make heads of tails out of it. Does "words" have a delimiter, as does "-F" with awk? Many thanks, -T

Re: awk?

2018-04-13 Thread ToddAndMargo
On Fri, Apr 13, 2018 at 12:31 PM, Shlomi Fish <shlo...@shlomifish.org <mailto:shlo...@shlomifish.org>> wrote: Hi Todd, On Fri, 13 Apr 2018 03:00:22 -0700 ToddAndMargo <toddandma...@zoho.com <mailto:toddandma...@zoho.com>> wrote: > echo "

Re: awk?

2018-04-13 Thread ToddAndMargo
M, Shlomi Fish <shlo...@shlomifish.org> wrote: Hi Todd, On Fri, 13 Apr 2018 03:00:22 -0700 ToddAndMargo <toddandma...@zoho.com> wrote: echo "total kB 1804482980 112" | awk '{print $4}') shlomif[Perl6]:$trunk$ echo "total kB 1804482

Re: how do I do an integer divide?

2018-04-13 Thread ToddAndMargo
On Fri, 13 Apr 2018 at 11:07 ToddAndMargo <toddandma...@zoho.com <mailto:toddandma...@zoho.com>> wrote: How do I do and integer divide? On 04/13/2018 03:09 AM, Simon Proctor wrote: It's div (lowercase) so 21 div 4 = 5 :) That was easy

Re: awk?

2018-04-13 Thread ToddAndMargo
On 04/13/2018 03:31 AM, Shlomi Fish wrote: Hi Todd, On Fri, 13 Apr 2018 03:00:22 -0700 ToddAndMargo <toddandma...@zoho.com> wrote: echo "total kB 1804482980 112" | awk '{print $4}') shlomif[Perl6]:$trunk$ echo "total kB 1804482980 11

Re: awk?

2018-04-13 Thread ToddAndMargo
On 04/13/2018 04:13 AM, Fernando Santagata wrote: "There's More Than One Way To Do It" The definition of Perl! :-)

how do I do an integer divide?

2018-04-13 Thread ToddAndMargo
Hi All, How do I do and integer divide? By that I mean I want only the whole number and not the decimal point or the fraction. 21 DIV 4 = 5 (not 5.25) 21 % 4 = 1 (remainder = 1) Many thanks, -T

awk?

2018-04-13 Thread ToddAndMargo
Hi All, How to I translate this to Perl 6? I am looking to be able to dig out the fourth (or any) data point. #!bin/bash $x=$(echo "total kB 1804482980 112" | awk '{print $4}') echo $x 2980 Many thanks, -T

Re: latest rakudo srtar not found

2018-04-17 Thread ToddAndMargo
On 04/16/2018 09:17 AM, Siavash wrote: From https://rakudo.org/files/star/windows: "Installer for the [32-bit Rakudo Star](https://rakudo.org/latest/star/win32) is available, but is severely outdated. You may wish to attempt to [build from source](https://rakudo.org/files/star/source)

Re: latest rakudo srtar not found

2018-04-17 Thread ToddAndMargo
On 04/16/2018 09:17 AM, Siavash wrote: From https://rakudo.org/files/star/windows: "Installer for the [32-bit Rakudo Star](https://rakudo.org/latest/star/win32) is available, but is severely outdated. You may wish to attempt to [build from source](https://rakudo.org/files/star/source)

Re: latest rakudo srtar not found

2018-04-16 Thread ToddAndMargo
>> Hi, >> >> I was used to download the latest rakudo star install file for testing >> on appveyor using url >> http://rakudo.org/downloads/star/rakudo-star-latest-x86_64 >> (JIT).msi. Messages returned are >> >> Error downloading remote file: One or more errors occurred. >> Inner Exception:

Re: I need help with NativeCall

2018-03-04 Thread ToddAndMargo
On 03/04/2018 06:56 AM, Curt Tilmes wrote: I also see another bug: method flags { do for AddrInfo-Flags.enums { .key if $!ai_flags +| .value } } should be method flags { do for AddrInfo-Flags.enums { .key if $!ai_flags +& .value } } Though you probably

I need help with NativeCall

2018-03-02 Thread ToddAndMargo
Hi All, https://docs.perl6.org/language/nativecall I just don't understand. I want specifically (not a work around) want to make a call to "getaddrinfo" and I don't know how to write in C. (It is part of troubleshooting some other code that uses getaddrinfo. I want to see what it sees.) The

Re: I need help with NativeCall

2018-03-02 Thread ToddAndMargo
On 03/02/2018 11:31 AM, ToddAndMargo wrote: Hi All, https://docs.perl6.org/language/nativecall I just don't understand. I want specifically (not a work around) want to make a call to "getaddrinfo" and I don't know how to write in C. (It is part of troubleshooting some other code

Re: bitwise paper?

2018-10-04 Thread ToddAndMargo
On 10/3/18 7:16 PM, ToddAndMargo wrote: Bitwise "IN" (Does y exist in x):     $ p6 'my $x=0b1001; my $y=0b0101; my $z=$x +& $y; say so $y == $z;'     False     $ p6 'my $x=0b1001; my $y=0b1001; my $z=$x +& $y; say so $y == $z;'     True     p5 not figured out yet

Re: bitwise paper?

2018-10-04 Thread ToddAndMargo
On 10/4/18 10:01 AM, ToddAndMargo wrote: On 10/3/18 7:16 PM, ToddAndMargo wrote: Bitwise "IN" (Does y exist in x): $ p6 'my $x=0b1001; my $y=0b0101; my $z=$x +& $y; say so $y == $z;' False $ p6 'my $x=0b1001; my $y=0b1001; my $z=$x +& $y; say so $y == $z;'

bitwise or?

2018-10-04 Thread ToddAndMargo
Hi All, I am trying to come up with something like += $ p6 'my $v = 32; $v += 2; say $v;' 34 to replace $ p6 'my $v = 0b0010; $v = $v +| 0b0001; say $v;' 48 But I obviously have something wrong: $ p6 'my $v = 0b0010; $v +| 0b0001; say $v;'

Re: routine declaration line question

2018-10-04 Thread ToddAndMargo
On 10/4/18 12:04 PM, Brandon Allbery wrote: Arguably it should be --> Any, since Mu vs. Any has meaning with respect to Junctions. But in this case it's just not stating a redundancy. The way you'd phrased it makes it sound like it's an explicit no-meaningful-result, as opposed to 'we don't

Re: bitwise or?

2018-10-04 Thread ToddAndMargo
On 10/4/18 12:00 PM, JJ Merelo wrote: El jue., 4 oct. 2018 a las 20:58, ToddAndMargo (<mailto:toddandma...@zoho.com>>) escribió: Hi All, I am trying to come up with something like +=       $ p6 'my $v = 32; $v += 2; say $v;'       34 to replace      

Re: routine declaration line question

2018-10-04 Thread ToddAndMargo
On 10/4/18 9:37 AM, Brandon Allbery wrote: Consider a function which returns the element at a given position in a list:     method AT-POS(\position) The only thing you can say about the result type is that it's whatever the type of the element at that position is. So it doesn't bother

Re: routine declaration line question

2018-10-04 Thread ToddAndMargo
On 10/4/18 1:49 AM, Peter Pentchev wrote: On Wed, Oct 03, 2018 at 10:50:14PM -0700, ToddAndMargo wrote: On Wed, Oct 3, 2018 at 7:21 PM ToddAndMargo mailto:toddandma...@zoho.com>> wrote: >> On 04/10/2018 03:07, ToddAndMargo wrote: >>> Hi All, >

Re: bitwise or?

2018-10-04 Thread ToddAndMargo
On 10/4/18 12:00 PM, Brandon Allbery wrote: You're not doing anything with '$v +| 0b0001'. Were you looking for something like '+|='? (Which I think should work.) On Thu, Oct 4, 2018 at 2:58 PM ToddAndMargo <mailto:toddandma...@zoho.com>> wrote: Hi All, I am trying t

Re: bitwise or?

2018-10-04 Thread ToddAndMargo
On 10/4/18 12:06 PM, ToddAndMargo wrote: On 10/4/18 12:00 PM, JJ Merelo wrote: El jue., 4 oct. 2018 a las 20:58, ToddAndMargo (<mailto:toddandma...@zoho.com>>) escribió:     Hi All,     I am trying to come up with something like +=       $ p6 'my $v = 32; $v +=

Re: bitwise paper?

2018-10-03 Thread ToddAndMargo
On 10/2/18 10:16 PM, David Green wrote: On 2018-10-02 9:57 pm, ToddAndMargo wrote: Does anyone know of a paper out in web land showing how to do bitwise operations? Trying to AND 0010 with 0001 $ p6 'my $v = 32 & 16; say $v;' If you search docs.perl6.org for "bitwise"

Re: What are the official names?

2018-10-03 Thread ToddAndMargo
On 10/3/18 3:34 AM, Ralph Mellor wrote: That's called a routine declaration. That's the one. Thank you!

Re: No. It is lucid! Re: Could this be any more obscure?

2018-10-03 Thread ToddAndMargo
On 10/2/18 9:02 PM, Richard Hainsworth wrote: The Perl6 community is warm, generous, and intellectually inspiring. Those virtues should be defended against unseemly and intemperate language. Calling a documentation writer a 'jerk' is wrong. Agreed. They are very much so. And since you are a

Re: bitwise paper?

2018-10-03 Thread ToddAndMargo
On 10/2/18 9:46 PM, Trey Harris wrote: On Tue, Oct 2, 2018 at 23:57 ToddAndMargo <mailto:toddandma...@zoho.com>> wrote: Hi All, Does anyone know of a paper out in web land showing how to do bitwise operations?  DuckDuckGo give me tons of hits for Perl 5.

Re: What are the official names?

2018-10-03 Thread ToddAndMargo
On 10/3/18 8:27 AM, Vittore Scolari wrote: "Apocalypse 6: Subroutines" document define that as a subroutine declaration Thank you!

Re: Could this be any more obscure?

2018-10-03 Thread ToddAndMargo
On 10/2/18 10:16 PM, David Green wrote: On 2018-09-30 9:31 pm, ToddAndMargo wrote: >By the way, schools have books.  Why is it do you suppose that that schools also have teacher? Well, why is it, do you suppose, that hiring a tutor costs so much more than buying a book? Certainly, s

Re: Could this be any more obscure?

2018-10-03 Thread ToddAndMargo
On 10/3/18 11:33 AM, ToddAndMargo wrote: On 10/2/18 10:16 PM, David Green wrote: On 2018-09-30 9:31 pm, ToddAndMargo wrote:  >By the way, schools have books.  Why is it do you suppose that that schools also have teacher? Well, why is it, do you suppose, that hiring a tutor costs so m

Re: Could this be any more obscure?

2018-09-30 Thread ToddAndMargo
Hi All, My "Perl" box got corrupted and in the process of rebuilding it I lost this thread except for one one message from JJ. Anyway, I am not deliberately ignoring anyone, I just lost the thread. :'( -T

Re: Could this be any more obscure?

2018-09-30 Thread ToddAndMargo
On 9/30/18 7:07 AM, Peter Scott wrote: gain, covered in the excellent tutorial material that you are determined not to read and are instead extracting message by message from the members of this list. That latter approach is going to end up being more frustrating and alienating for you in the

What are the official names?

2018-10-02 Thread ToddAndMargo
Hi All, What is the official Perl syntaxland name of the following line? multi method words(Str:D $input: $limit = Inf --> Positional) What is the official Perl syntaxland name of the [] subroutine? $ p6 'my @x=[1,2,3,4]; @x[3,2,1,0].say;' (4 3 2 1) $ p6 'my @x=[1,2,3,4];

bitwise paper?

2018-10-02 Thread ToddAndMargo
Hi All, Does anyone know of a paper out in web land showing how to do bitwise operations? DuckDuckGo give me tons of hits for Perl 5. Trying to AND 0010 with 0001 $ p6 'my $v = 32 & 16; say $v;' all(32, 16) should give me . I have a nice paper on Perl 5. I don't think

Re: No. It is lucid! Re: Could this be any more obscure?

2018-10-02 Thread ToddAndMargo
On 10/1/18 4:17 PM, Brandon Allbery wrote: That just sounds like the backing store got restored from backup, losing anything added after the backup was taken. Which is not the best way to do things (incrementals are nice), but if things had gone wrong enough might have been the best they could

Re: Could this be any more obscure?

2018-10-02 Thread ToddAndMargo
On 10/2/18 5:31 PM, Curt Tilmes wrote: On Tue, Oct 2, 2018 at 8:28 PM ToddAndMargo <mailto:toddandma...@zoho.com>> wrote: Question: in Perl syntaxland, is "postfix" short for "postcircumfix"? Nope.  Each are different types of oeprator.  Here is the

Re: Could this be any more obscure?

2018-10-02 Thread ToddAndMargo
On 10/2/18 2:01 AM, Simon Proctor wrote: https://docs.perl6.org/type/Signature Todd can I ask that you read this page of the docs for two reasons. Firstly understanding Signatures will go a long way to helping you to understand the rest of the docs, and secondly so you can give use your take

Re: Could this be any more obscure?

2018-10-02 Thread ToddAndMargo
On 10/2/18 5:51 PM, Larry Wall wrote: On Tue, Oct 02, 2018 at 05:28:01PM -0700, ToddAndMargo wrote: : On 10/2/18 11:23 AM, Ralph Mellor wrote: : >So, to recap: a postfix `[]` acts on whatever is on its left, : >pulling out elements from the thing on its left, treated as : >a list l

Re: Could this be any more obscure?

2018-10-02 Thread ToddAndMargo
On 10/2/18 5:51 PM, Curt Tilmes wrote: On Tue, Oct 2, 2018 at 8:46 PM ToddAndMargo <mailto:toddandma...@zoho.com>> wrote: On 10/2/18 5:31 PM, Curt Tilmes wrote: > > On Tue, Oct 2, 2018 at 8:28 PM ToddAndMargo mailto:toddandma...@zoho.com> &

Re: need doc help with []

2018-10-02 Thread ToddAndMargo
On Tue, Oct 2, 2018 at 8:14 PM ToddAndMargo <mailto:toddandma...@zoho.com>> wrote: Hi All, I use postcircumfix [] all the time. But I don't understand the documentation. https://docs.perl6.org/routine/[%20]#language_documentation_Operators <https://docs.perl6.org

Re: need doc help with []

2018-10-02 Thread ToddAndMargo
On 10/2/18 5:20 PM, Curt Tilmes wrote: Remember within the few days people sent you links to read more about signatures?  Go read them, then re-ask any remaining questions. Hi Curt, Will do. I have them both up in tabs. I am awaiting a customer to do a go to assist, so I was answering my

Re: need doc help with []

2018-10-02 Thread ToddAndMargo
On 10/2/18 6:02 PM, Trey Harris wrote: What Curt said, but also, this is a bit like trying to understand English's word "have" with a dictionary. No one who speaks English natively looks up "have" in the dictionary. Anyone who does so will find definitions like, "Used in forming the perfect

Re: join questions

2018-10-02 Thread ToddAndMargo
On 10/1/18 4:35 PM, Larry Wall wrote: On Sun, Sep 30, 2018 at 04:02:15AM -0700, ToddAndMargo wrote: : Hi All, : : https://docs.perl6.org/routine/join#(List)_routine_join : : method join(List:D: $separator --> Str:D) : : $ p6 'say (1, ).join("|");' : 1|a b c : : : It states

Re: No. It is lucid! Re: Could this be any more obscure?

2018-10-02 Thread ToddAndMargo
On 9/30/18 9:11 PM, Richard Hainsworth wrote: But I thought you just implied you wanted pro stuff, not beginner stuff. I have no idea how you got that out of what I said. I want the beginners stuff included with the pro stuff. So what is wanted is 'common user' stuff (see below). You are

Re: Could this be any more obscure?

2018-10-02 Thread ToddAndMargo
On 10/2/18 6:06 AM, Rocco Caputo wrote: On Oct 2, 2018, at 04:40, ToddAndMargo <mailto:toddandma...@zoho.com>> wrote: I am thinking of doing an RFE to place at the front of the routines documentation that introduces the reader on how to read THAT line in the documentatio

Re: need doc help with []

2018-10-02 Thread ToddAndMargo
On 10/2/18 6:09 PM, Curt Tilmes wrote: On Tue, Oct 2, 2018 at 9:04 PM ToddAndMargo <mailto:toddandma...@zoho.com>> wrote: Not to put the cart before the horse, having not read those references yet, but did the crypto line forget the --> return? https://docs.perl6.org/ty

Re: What are the official names?

2018-10-02 Thread ToddAndMargo
On 10/2/18 4:47 PM, David Green wrote: On 2018-10-02 4:06 pm, ToddAndMargo wrote: What is the official Perl syntaxland name of the [] subroutine? If you search for "[]" at https://docs.perl6.org, it will turn up the routine "postcircumfix [ ]", which links to <https:/

Re: need doc help with []

2018-10-02 Thread ToddAndMargo
On 10/2/18 6:29 PM, Trey Harris wrote: It's nice, certainly, but I think you miss my point. Oh no, I completely caught it. I am noticing that with regex's. They just have started to peal off. I only posted that link in case its would assist English as a second language speakers. It was a

Re: need doc help with []

2018-10-02 Thread ToddAndMargo
On 10/2/18 7:32 PM, Timo Paulssen wrote: Hi Todd, On 03/10/2018 02:14, ToddAndMargo wrote: sub postcircumfix:<[ ]>(@container, **@index,     :$k, :$v, :$kv, :$p, :$exists, :$delete) 1  Why the <[]>?  I have always used [] with out the <>.    Why would

Re: What are the official names?

2018-10-02 Thread ToddAndMargo
On 10/2/18 7:38 PM, Timo Paulssen wrote: I just saw that this was already kind of answered in the other thread, sorry about that! It is appreciated anyway! Being smacked from two sides works even better! :-) Any idea what the official name of the crypto line is?

need doc help with []

2018-10-02 Thread ToddAndMargo
Hi All, I use postcircumfix [] all the time. But I don't understand the documentation. https://docs.perl6.org/routine/[%20]#language_documentation_Operators would someone please explain what the crypto line means: sub postcircumfix:<[ ]>(@container, **@index, :$k,

Re: Could this be any more obscure?

2018-10-02 Thread ToddAndMargo
On 10/2/18 11:23 AM, Ralph Mellor wrote: So, to recap: a postfix `[]` acts on whatever is on its left, pulling out elements from the thing on its left, treated as a list like thing, with the elements selected according to the index(es) inside the brackets. Perfect! Thank you! I am going to

Re: Could this be any more obscure?

2018-10-02 Thread ToddAndMargo
On 10/2/18 2:24 AM, Elizabeth Mattijsen wrote: Also, a hopefully less steep introduction: https://opensource.com/article/18/9/signatures-perl-6 Will do! Thank you! Do you have an index to other stuff you have written?

Re: need doc help with []

2018-10-02 Thread ToddAndMargo
On 10/2/18 5:14 PM, ToddAndMargo wrote: 3)  What is a **@?  *@ is a slurp all remaining.   A     super duper slurp? Found this one. It is a special kind of slurpy. Grape flavor. What? Not funny? https://docs.perl6.org/syntax/%20**@ (Signature) parameter **@ Slurpy parameters

A regex that tickles me

2018-10-02 Thread ToddAndMargo
Hi All, This regex just tickles me. I am converting a date (2018-09-15) I harvest from a web page into a revision number (2018.09.15). The particular web site only dates for their releases, so, no problem, I am using Perl 6 #!/usr/bin/env perl6 my Str $x = "2018-09-15"; $x ~~ s/ (<:N>**4)

Re: Could this be any more obscure?

2018-09-28 Thread ToddAndMargo
On 9/28/18 3:54 PM, Curt Tilmes wrote: When used as an argument, the value Inf (Infinity)         represents "without bound" or "no limit" Thank you! How about just: When used as an argument, the value Inf (Infinity) represents "without bound" or "no limit". That would have

Re: Could this be any more obscure?

2018-09-28 Thread ToddAndMargo
On 9/28/18 10:37 AM, Brandon Allbery wrote: We're going to have a problem if "infinity" is not allowed in the presence of some programmers. "All values" can mean too many things in too many situations. And I don't think using * works here, quite, precisely because it can mean too many things.

Re: Could this be any more obscure?

2018-09-28 Thread ToddAndMargo
On 9/28/18 3:45 PM, ToddAndMargo wrote: The value Inf (Infinity) represents "without bound" or "no limit" (meaning "all possible values") when used as an argument. Better written would be: When used as an argument, the value Inf (Infini

Re: Could this be any more obscure?

2018-09-28 Thread ToddAndMargo
On 9/27/18 12:40 AM, Laurent Rosenfeld via perl6-users wrote: > I am NOT asking it to limit my request to Infinity. Yes you are, implicitly. If you don't pass any parameter for $limit, $limit will take the default value supplied by the signature, i.e. Inf. True, but that is not what the

Re: Could this be any more obscure?

2018-09-28 Thread ToddAndMargo
On 9/28/18 12:34 PM, Curt Tilmes wrote: On Fri, Sep 28, 2018 at 2:57 PM ToddAndMargo <mailto:toddandma...@zoho.com>> wrote: On 9/28/18 10:42 AM, Curt Tilmes wrote: > Indeed we do, we have a special value just for that -- Inf or ∞. Inf or ∞ still means (to me) a numb

Re: Could this be any more obscure?

2018-09-28 Thread ToddAndMargo
On 9/28/18 4:36 PM, Curt Tilmes wrote: On Fri, Sep 28, 2018 at 7:23 PM ToddAndMargo <mailto:toddandma...@zoho.com>> wrote: How about just:       When used as an argument, the value Inf (Infinity)       represents "without bound" or "no limit".

Re: Could this be any more obscure?

2018-09-28 Thread ToddAndMargo
On 9/28/18 10:42 AM, Curt Tilmes wrote: Indeed we do, we have a special value just for that -- Inf or ∞. Inf or ∞ still means (to me) a number too large to represent. But, I can't think of another way to say "all of them".

Re: Could this be any more obscure?

2018-09-29 Thread ToddAndMargo
On 9/29/18 12:44 AM, JJ Merelo wrote:       Inf when used as an instance of Num and represents a       value that's too large to represent in 64-bit double-precision s      floating point number Not "when". Inf _is_ a Num. And it does not represent that. You can represent any

RFE's on Inf and words documentation

2018-09-29 Thread ToddAndMargo
Hi All, I just posting the following Requests for Enhancement. Thank you all for your assistance in helping me learn enough about the subject to make decent requests! -T RFE: wording change to Inf in the documentation https://github.com/perl6/doc/issues/2341 RFE: working change in "words"

Re: Could this be any more obscure?

2018-10-01 Thread ToddAndMargo
On 9/30/18 3:58 AM, JJ Merelo wrote: There is one line per signature, or definition. You misunderstand. I was proposing a different way of stating it such that you did not have to keep repeating lines with slight differences

Re: No. It is lucid! Re: Could this be any more obscure?

2018-10-01 Thread ToddAndMargo
On 9/30/18 9:11 PM, Richard Hainsworth wrote: your 'perl' box was corrupted. Somewhere the imap daemons got appeased and suddenly a day later, I watched it all come blazing back. Hopefully tomorrow I will get a chance to read over what yo wrote. By the way, the eMail I send about the thread

Re: Could this be any more obscure?

2018-10-02 Thread ToddAndMargo
On 10/1/18 3:37 PM, Donald Hunter wrote: toddandma...@zoho.com (ToddAndMargo) writes: Hi Curt, Perfect! Thank you! So all methods that respond with --> Positional will accept [] Awesome! -T Not quite. All methods that respond with --> Positional, provide a Positional that will

Re: Could this be any more obscure?

2018-10-02 Thread ToddAndMargo
On 10/1/18 1:20 AM, Siavash wrote: You can read the thread here: https://www.nntp.perl.org/group/perl.perl6.users/2018/09/msg5757.html On 2018-10-01 04:21:43 +0330, ToddAndMargo wrote: Hi All, My "Perl" box got corrupted and in the process of rebuilding it I lost this thread exce

<    4   5   6   7   8   9   10   11   12   13   >