Re: Font used for raku welcome message

2021-08-27 Thread Andinus via perl6-users
Norman Gaywood @ 2021-08-27 11:20 IST: > On Linux (various versions), if I ssh to another system and start the raku > REPL , I am greeted with: > > Welcome to 퐑퐚퐤퐮퐝퐨™ v2021.08. > Implementing the 퐑퐚퐤퐮™ programming language v6.d. > > On some systems, this is displayed as (embedded graphic): > >

Re: how do I turn a real into and array of Integers?

2021-10-31 Thread Andinus via perl6-users
ToddAndMargo via perl6-users @ 2021-10-30 23:57 -07: > Without going into why (it is a secret), how do I turn > >> my $x = sqrt 2 > 1.4142135623730951 > > into an array of integers? > @y[0] = 1 > @y[1] = 4 > @y[2] = 1 > @y[3] = 4 > @y[4] = 2 > @y[5] = 1 put

Re: is there an AI on the beginner chat line?

2023-10-27 Thread Andinus via perl6-users
ToddAndMargo via perl6-users @ 2023-10-27 03:19 -07: > On 10/27/23 00:10, Andinus via perl6-users wrote: >> ToddAndMargo via perl6-users @ 2023-10-26 21:19 -07: >> >>> [...] >>> They have someone called "discord-raku-bot".  Some of the responses >&

Re: is there an AI on the beginner chat line?

2023-10-27 Thread Andinus via perl6-users
ToddAndMargo via perl6-users @ 2023-10-26 21:19 -07: > Hi All, > > Over onthe beginner's chat linbe: > > https://kiwiirc.com/nextclient/irc.libera.chat/#raku-beginner > > They have someone called "discord-raku-bot".  Some of the responses > sound a bit off.  By chance, is discord-raku-bot an AI

Re: trouble returning a value from sub

2022-06-16 Thread Andinus via perl6-users
Here is the code: ... } else { return factors($q, @f); } ... Return the values during recursive calls too. Output: [2 2 5] 2 2 5 Simon Proctor @ 2022-06-16 19:07 +01: > I think, and I don't have my computer to hand to double check but I > think you

Re: sprintf and print question

2022-09-01 Thread Andinus via perl6-users
ToddAndMargo via perl6-users @ 2022-09-01 19:37 -07: > Is there a cleaner way to do this? > > $ raku -e 'print( (sprintf "%.4s", "andefghi" ) ~ "\n";)' > ande > > I want to print the first four letter s to STDOUT. You can use substr, | put "andefghi".substr(0, 4) ande

Re: BEGIN {} question

2022-09-01 Thread Andinus via perl6-users
ToddAndMargo via perl6-users @ 2022-09-01 10:30 -07: > On 9/1/22 00:45, Richard Hainsworth wrote: >> Treat the regexes as data for a program. Compile the program once. >> Run the regexes as often as you need. > > Please elucidate. That could save me boat loads > of time. You could take the