00:46 human-blip left 00:48 human-blip joined
disbot3 <neekotism> How do I do async? It's really confusing :cameliathink: 05:55
07:20 librasteve_ joined
disbot3 <librasteve> @neekotism o/ … suggest you start with the and then this tutorial docs.raku.org/language/concurrency 07:33
08:10 dakkar joined 09:40 librasteve_ left 10:18 librasteve_ joined
ds7832 m: my @months = 1..12; say @months[9, *-3] 11:26
camelia (10 10)
ds7832 So list slices where the right argument is counting from the back and in this way coincides with the left argument actually contain the same list element twice. 11:27
Is there a simple way to get just (10) in this case? 11:28
Like e.g. in python: x = [i for i in range(1,13)]; x[9:-2] 11:30
which gives [10] 11:31
nevermind, I misunderstood the slice syntax 11:36
m: my @months = 1..12; say @months[9..*-3] 11:37
camelia (10)
ds7832 So everything as expected. ^^
13:10 librasteve_ left 14:04 librasteve_ joined 16:00 stanrifkin joined 16:35 dakkar left 18:42 stanrifkin left 19:38 stanrifkin joined 19:45 habere-et-disper joined 20:01 habere-et-disper left 20:44 librasteve_ left
lizmat m: my @months = 1..12; say @months[9,*-3].unique # alternately 22:47
camelia (10)