🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). Log available at irclogs.raku.org/raku/live.html . If you're a beginner, you can also check out the #raku-beginner channel! Set by lizmat on 6 September 2022. |
|||
japhb | Xliff: categorize by index mod 3? | 00:09 | |
00:12
vrurg_ joined
00:13
sena_kun left
00:15
vrurg left
00:19
haxxelotto left,
Summer left,
Summer joined
00:20
haxxelotto joined
00:41
haxxelotto left
|
|||
Voldenet | m: my $a = (^3).map({ [] }); for <a b c d e f g h i> { $a[$++ % $a.elems].push($_); } ; $a.say | 00:56 | |
camelia | ([a d g] [b e h] [c f i]) | ||
Voldenet | I'm not entiresly sure if it's idiomatic | 00:57 | |
tbrowder__ | i can't see my msg, but i'm trying to dynamically load a module per the example in the docs but i'm getting a failure. hints welcome | 01:08 | |
01:14
lichtkind left
|
|||
SmokeMachine | m: my (@a, @b, @c); for <a b c d e f g h I> -> $a, $b, $c { @a.push: $a; @b.push: $b; @c.push: $c }; say [:@a, :@b, :@c] | 01:20 | |
camelia | [a => [a d g] b => [b e h] c => [c f I]] | ||
SmokeMachine | m: my (@a, @b, @c); for <a b c d e f g h I> -> $a, $b, $c { my @r = $a, $b, $c; (@a, @b, @c).map: *.push: @r.shift }; say [:@a, :@b, :@c] | 01:28 | |
camelia | [a => [a d g] b => [b e h] c => [c f I]] | ||
SmokeMachine | my :(@a, @b, @c) := <a b c d e f g h i>.classify($++ % 3).values; say [:@a, :@b, :@c] | 01:32 | |
m: my :(@a, @b, @c) := <a b c d e f g h i>.classify($++ % 3).values; say [:@a, :@b, :@c] | |||
camelia | Cannot resolve caller classify-list(Hash[Any,Mu]:D: Int:D, List:D, :as(Callable)); none of these signatures matches: (Hash: &test, \list, :&as, *%_) (Hash: %test, |c) (Hash: @test, |c) (Hash: &test, **@list, |c) in block <u… |
||
SmokeMachine | my :(@a, @b, @c) := <a b c d e f g h i>.classify({ $++ % 3}).values; say [:@a, :@b, :@c] | ||
evalable6 | [a => [c f i] b => [a d g] c => [b e h]] | ||
Voldenet | the output is somewhat… weird | 01:33 | |
SmokeMachine | Xliff: 👆 | ||
Voldenet | >b => [a d g] | ||
where in the previous examples it was a | |||
SmokeMachine | Yes… very odd… just noticed | ||
Voldenet | doesn't classify guarantee order? | ||
01:34
oodani left
|
|||
Voldenet | Ah, that's because classify is implemented with hash | 01:34 | |
01:34
oodani joined
|
|||
Voldenet | so obviously it doesn't | 01:34 | |
SmokeMachine | my :(@a, @b, @c) := <a b c d e f g h i>.classify({ $++ % 3}).values.sort: *.head; say [:@a, :@b, :@c] | 01:35 | |
evalable6 | [a => [a d g] b => [b e h] c => [c f i]] | ||
SmokeMachine | m: say [].classify-list: <a b c d e f g h i>, {$++ % 3} | 01:37 | |
camelia | No such method 'classify-list' for invocant of type 'Array' in block <unit> at <tmp> line 1 |
||
SmokeMachine | Hash-like only… :( | 01:38 | |
Xliff | SmokeMachine: Odd. That does work, but it loses points for hash disorder! :) | 02:00 | |
SmokeMachine++! # Gives me something else to work with | |||
tbrowder__ | i'm going to try using a dynamic env var def of RAKULIB | 02:06 | |
Xliff | My Raku Fu now stands at: 1,110,875 lines of code. | 02:16 | |
02:25
kylese left,
hulk joined
02:55
itaipu left
03:07
itaipu joined
03:15
hulk left,
kylese joined
03:24
vrurg_ is now known as vrurg
05:02
xinming left
05:03
xinming joined
05:05
Summer left,
Summer joined
05:32
xinming left
05:33
xinming joined
06:44
xinming left
06:45
xinming joined
06:58
Summer left,
Summer joined
07:10
xinming left
07:12
xinming joined
07:26
xinming left,
xinming joined
07:55
jpn joined
08:13
bdju left,
jpn left
08:15
bdju joined
08:19
jpn joined
|
|||
ponycat | :O | 08:20 | |
08:28
xinming left
08:29
xinming joined
08:53
xinming left,
xinming joined
09:36
jpn left
09:37
sena_kun joined
09:53
Summer left
09:54
Summer joined
09:56
jpn joined
10:12
xinming left
10:13
xinming joined
10:21
jpn left
10:24
Summer left
10:25
Summer joined
10:27
lichtkind joined
10:28
Xliff left
10:36
jpn joined
10:41
jpn left
10:46
Sgeo left
11:26
ponycat left,
ponycat joined
11:43
abraxxa-home joined
12:14
jpn joined
12:19
jpn left
|
|||
tbrowder__ | quib: thnx. looking at my current display i do NOT see multiple channels. | 12:28 | |
what i do see now are two networks: "IRCCloud" and "Libera.Chat" | 12:31 | ||
and i have | 12:32 | ||
12:32
Summer left
12:33
Summer joined
|
|||
tbrowder__ | *and i have forgotten (never really understoof) how they are supposed to work together | 12:33 | |
afk& | 12:34 | ||
12:37
jpn joined
12:41
jpn left
12:48
MasterDuke left
12:54
sena_kun left
13:02
Summer left
13:03
Summer joined
13:38
jpn joined
13:43
jpn left
14:23
haxxelotto joined
14:39
jpn joined
14:44
jpn left
14:49
tea3po left
14:50
tea3po joined
15:17
abraxxa-home left
15:33
jpn joined
15:38
jpn left
15:40
jpn joined
15:45
jpn left
16:41
jpn joined
16:46
jpn left
16:48
haxxelotto left
17:42
jpn joined
17:47
jpn left
18:02
n0den1te joined
18:06
sena_kun joined
18:11
n0den1te left
18:30
dustinm` left
18:39
dustinm` joined
18:43
jpn joined
18:48
jpn left
19:28
Sgeo joined
19:33
jpn joined
19:37
jpn left
19:39
MasterDuke joined
19:48
sena_kun left
19:49
abraxxa-home joined
20:13
jpn joined
20:18
jpn left
20:27
MasterDuke left
20:31
Tirifto left
20:32
Tirifto joined
20:45
jpn joined
20:50
jpn left
20:57
sena_kun joined
20:59
abraxxa-home left
21:15
silug9 joined
21:16
silug left,
silug9 is now known as silug
21:46
jpn joined
21:51
jpn left
22:08
jpn joined
22:34
jpn left
23:15
sena_kun left
|