00:02 librasteve_ left 03:48 human-blip left 03:50 human-blip joined 07:57 dakkar joined 07:58 dakkar_ joined, dakkar_ left 07:59 dakkar_ joined 08:02 dakkar left, dakkar_ is now known as dakkar 11:25 guifa_ joined 11:27 guifa left 14:03 librasteve_ joined 16:32 dakkar left
librasteve_ rakudoweekly.blog/2026/06/15/2026-...oundation/ 17:22
disbot4 <comborico> @librasteve I'd liked to upload LISP Guide to Raku, what I have so far. In case my writing style or ability isn't up to par. I don't want to keep writing it if it isn't what you are after. 18:55
<comborico> Could anyone direct me to info on why call-by-value was not default behavior for routines? 19:28
<comborico> The default setting being const. 19:29
<librasteve> @comborico please go to a similar page in the docs, click the pen to open the github repo … make a new file (copy the pattern from existing docs) and then submit as a PR and assign me to review 19:50
<librasteve> you will need to fork, edit and then create PR from your fork … many here will help if you are new to GH PRs (and AI can show you how) 19:51
20:12 arnot joined 20:14 arnot46 joined
arnot46 i'm very new to this : So i Give it a Try: 20:17
can you explain ( give info ) about hyper, maps and it's usage ? 20:18
disbot4 <comborico> Hyper, I don't know. But MAP, I do. 20:23
<comborico> MAP applies a routine (function) onto a list of things.
<comborico> So in the REPL: map {$_ + 2}, <1 2 3> #OUTPUT: 3, 4, 5 20:26
arnot Want to know when i can use hyper wtih map : 20:28
my @arr= 1 ,3,5,7;
@bla= @arr>>.map({$_ + 2 });
Can this be done or am i totally wrong ?
disbot4 <comborico> You know more than I, my friend. Maybe someone will come along soon.
arnot my @arr= 1 ,3,5,7; 20:33
my @bla= @arr>>.map({$_ + 2 }); ##[(3) (5) (7) (9)]
but
my @bla= @arr.map({$_ + 2 });     ## [3 5 7 9]
20:39 arnot left, arnot46 left
disbot4 <librasteve> arnot: hello - let me check your question 20:45
<librasteve> arnot: I would answer your question like this: (i) map and >> (hyper) are alternative ways to apply an operation to all items in an Array; (ii) each of them takes items from the array and applies an operation to it - so using them together is not advised 20:55
<librasteve> arnot: hypers are meta operators - so the thing that is applied to each item is an operator, not a block (so your example block {$_ + 2} cannot be directly used via hyper syntax 20:56
<librasteve> arnot: luckily you can make your own operators with Raku ;-)
librasteve_ m: my @arr= 1,3,5,7; sub postfix:<p2>($x) { $x + 2 }; say @arr>>p2; 20:58
camelia [3 5 7 9]
librasteve_ hope that helps 20:59
disbot4 <comborico> I'm wondering what is going on with this: 22:50
<comborico> $ = 1; unless 0 -> $ { $_.say }
<comborico> Without the arrow it says 1, but with 0. Why?