01:09
Heptite left
01:33
Manifest0 left
09:25
Manifest0 joined
|
|||
lizmat | renormalist: if you're jus interested in a Bool, you can use "first" instead of "grep" | 11:23 | |
then it will short-circuit on the first occurrence and not look any further | |||
where "grep" will generate a list of occurrences, and the "so" or "?" will then work on the number of elements returned | 11:24 | ||
renormalist | ah, makes sense, yep, thanks | 12:55 | |
my @primes = (1, 3, 5, 7, 13 ... { $_ > 2**136_279_841 }); | |||
Unable to deduce arithmetic or geometric sequence from: 5,7,13 | |||
No I am slightly disapppointed :-) | |||
* Now | |||
m: my @primes = (1, 3, 5, 7, 13 ... { $_ > 2**136_279_841 }); | 12:56 | ||
camelia | Unable to deduce arithmetic or geometric sequence from: 5,7,13 Did you really mean '..'? in block <unit> at <tmp> line 1 |
||
lizmat | I guess we could go for checking for primality and magically introduce a producer that would produce primes only | ||
but meh :-) | 12:59 | ||
renormalist | yeah, I'm just joking, I just discover things and experiment how it works. I did not really expect Raku to find the next Mersenne prime. Yet, I tried. Just in case. :-) | ||
lizmat | m: say 'Life, the Universe and Everything'.WHY | 13:00 | |
camelia | 42 | ||
renormalist | Nice! | ||
lizmat | there are at least 2 more easter eggs in Rakudo :-) | 13:01 | |
renormalist | don't tell me now, I need to reuse that one first | 13:02 | |
lizmat | I'm not going to tell you :-) you'd have to go look for them | 13:07 | |
and yet another Rakudo Weekly News hits the Net: rakudoweekly.blog/2024/11/11/2024-...ternaries/ | 13:32 | ||
librasteve | renormalist: I think you need this raku.land/cpan:TOBS/OEIS ... although seems somewhat stale | 14:56 | |
15:07
Heptite joined
16:24
kjp left
16:25
kjp joined
17:19
Heptite left
20:05
Heptite joined
|
|||
avuserow | are dynamic variables suitable for something like keeping track of the depth of function calls (e.g. for pretty-printing a data structure recursively)? any good examples where this works out better than just passing a parameter like `:$depth = 0`? | 20:08 | |
.ohnowendigo | Is there formal documentation of slangs anywhere? There's nothing on docs.raku.org. Don't need a deep guide, just want an authoritative explanation and overview I can link to | 20:35 | |
lizmat | perhaps raku.land/zef:lizmat/Slangify ? | 20:38 | |
librasteve | lizmat: Slangify is surely the best tool, is there an example of a slang that uses it that we can steal bits from? | 21:03 | |
21:16
Guest64 joined,
Guest64 left
22:08
Heptite left
|
|||
lizmat | librasteve look at the reverse dependencies? | 22:58 |