This channel is intended for people just starting with the Raku Programming Language (raku.org). Logs are available at irclogs.raku.org/raku-beginner/live.html
Set by lizmat on 8 June 2022.
01:10 NemokoschKiwi left 02:21 ab5tract left 03:26 Kaiepi left
jaguart what's the best way return an array as a list or empty-list? 05:53
m: sub a { my @a; return |@a }; dd a; 05:54
camelia Nil
jaguart m: sub a { my @a; return @a ?? @a.Slip !! Empty }; dd a;
camelia Empty
jaguart I want to use it for .map() calls... 05:55
maybe I'm overthinking it? 06:01
m: class c { method a { my @a; return @a; } }; dd c.new.a;
camelia Array @a = []
jaguart m: class c { method a { my @a; return @a; } }; for c.new.a -> { say "x" }; 06:02
camelia ( no output )
jaguart m: class c { method a { my @a; return |@a; } }; for c.new.a -> $x { say "x" }; 06:04
camelia x
jaguart m: class c { method a { my @a; return @a.flat; } }; for c.new.a -> $x { say "x" }; 06:08
camelia ( no output )
CIAvash @a if @a? 08:27
jaguart are there issues with developing and installing a module on the same server? 08:42
in my Module dev area, raku -e --stagestats 'use Grok; grok( 4 )' ===> Stage parse : 0.137 08:44
outside my module dev folds: ===> Stage parse : 54.729 08:45
* /folds/folder/
is there a way to test / rebuild all the .precomps etc? 08:46
10:32 Kaiepi joined
lizmat jaguart: are you using -I ? 10:59
if you remove ~/.raku/precomp , all modules that have their precomp files in there (generally all normally installed modules) will have to re-precompile 11:00
11:00 Nemokosch joined
Nemokosch you missed out on a lot because the bridge is broken in one direction 11:01
turns out RAKULIB was set in a way that kinda sabotaged module lookup 11:02
what would still be interesting to know is what actually took so long in that case. Aren't all scripts cached some way? 11:03
lizmat I think so, ugexe or nine would know for sure 11:22
13:18 Nemokosch left, Nemokosch joined 14:23 jgaz joined 15:14 ab5tract joined 16:51 mcmillhj joined 17:02 Kaiepi left 17:11 NemokoschKiwi joined 17:15 Kaiepi joined 17:20 discord-raku-bot left, discord-raku-bot joined 17:26 discord-raku-bot left, discord-raku-bot joined 17:47 ab5tract left 17:49 jgaz left 17:53 drakonis left 18:04 NemokoschKiwi left 18:51 mcmillhj left 19:44 ab5tract joined 19:48 jgaz joined 20:57 WickedTortoise joined 21:50 Kaiepi left 22:06 jgaz left
jaguart lizmat: I was using RAKULIB-=lib,. so that prove6 would work and to save typing on the command line 22:36
22:36 Kaiepi joined 23:48 CosmicTortoise joined 23:51 WickedTortoise left 23:54 ab5tract left