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.
08:26 guifa_ joined 08:27 guifa left, swaggboi left, camelia left, kjp left, ACfromTX left 08:28 habere-et-disper joined, kjp joined 08:38 swaggboi joined 08:39 ACfromTX joined 08:46 camelia joined 09:00 camelia left, ACfromTX left 09:12 ACfromTX joined 09:19 camelia joined 10:06 stanrifkin joined 10:32 habere-et-disper left, habere-et-disper joined, habere-et-disper left, habere-et-disper joined 10:33 habere-et-disper left 10:34 habere-et-disper joined, habere-et-disper left 10:39 stanrifkin left 11:07 topnep left 11:08 topnep joined 11:28 stanrifkin joined 13:08 habere-et-disper joined 13:11 habere-et-disper left 13:12 topnep left 13:13 topnep joined 14:38 habere-et-disper joined 15:10 habere-et-disper left 16:38 habere-et-disper joined 17:07 habere-et-disper left 17:23 topnep left 17:24 topnep joined 18:28 habere-et-disper joined 19:07 Zedisdef joined 19:20 Zedisdef left 20:29 habere-et-disper left 20:30 habere-et-disper joined
thowe so there is a first method to find the first element of a list matching a pattern, but there is no "last" to find the last element matching a pattern. Bummer. 21:53
lizmat first( :end) 22:24
m: say <foo bar baz>.first(*.starts-with("ba"), :end) 22:25
camelia baz
lizmat thowe ^^
unfortunately "end" and "last" already had different semantics as method names 22:26
thowe I think I can just reverse the array, splice on front, and when I am done reverse it again. 22:43
22:47 habere-et-disper left 22:51 habere-et-disper joined
thowe I seem to recall there is a way to name a loop, so that when you are in the loop, even if inside another loop, you can go to the "next" item in the loop further up the loop hierachy. I am getting stuck in a while loop; I need to tell it to go to the next item in the conatingin for loop. 23:17
ah, labels I think 23:18
bingo. 23:19