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.
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
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
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
jaguart lizmat: I was using RAKULIB-=lib,. so that prove6 would work and to save typing on the command line 22:36