00:02 arkiuat joined 00:07 arkiuat left 00:27 arkiuat joined 00:35 arkiuat left
disbot6 <antononcube> Well, it works now with both zef and at raku.land. 00:40
[Coke] yah, was just trying to track down if it was a fez upload issue or a raku.land download issue. 00:46
ugexe you can check for raku.land issues on raku.land/build fwiw although you'd need to know the name of what isnt showin gup 00:51
that does some some issues though
github/raku-community-modules/Pod-To-HTML
i assume it cant find that because of the typo on github.com/raku-community-modules/...6.json#L52 00:52
01:01 arkiuat joined 01:06 arkiuat left 01:28 arkiuat joined 01:33 arkiuat left 01:47 arkiuat joined 01:51 arkiuat left 02:13 arkiuat joined 02:18 arkiuat left 02:32 arkiuat joined 02:40 arkiuat left 02:55 arkiuat joined 02:59 arkiuat left 03:00 hulk joined, kylese left 03:14 arkiuat joined 03:15 hulk left, kylese joined 03:21 arkiuat left 03:25 arkiuat joined 04:06 arkiuat left 04:19 arkiuat joined 04:24 arkiuat left 04:32 Aedil joined 04:33 arkiuat joined 04:35 summerisle left, summerisle joined 04:37 arkiuat left 04:45 lichtkind_ joined 04:48 lichtkind__ left 04:52 arkiuat joined 04:59 summerisle left, summerisle joined, summerisle left, summerisle joined 05:00 arkiuat left 05:21 arkiuat joined 05:26 arkiuat left 05:47 arkiuat joined 05:52 arkiuat left 06:06 arkiuat joined 06:11 arkiuat left 06:24 arkiuat joined 06:29 arkiuat left 06:40 arkiuat joined 06:45 arkiuat left 06:48 arkiuat joined 06:53 arkiuat left 07:21 arkiuat joined 07:26 arkiuat left, Aedil left 07:48 arkiuat joined 07:52 arkiuat left 08:13 arkiuat joined 08:14 Voldenet_ joined 08:15 Voldenet left, Voldenet_ is now known as Voldenet 08:18 arkiuat left 08:23 arkiuat joined 08:27 arkiuat left 08:28 arkiuat joined 08:32 arkiuat left 08:38 melezhik_ joined 08:40 arkiuat joined, stanrifkin joined 08:44 arkiuat left 08:47 melezhik_ left, melezhik_ joined 08:49 arkiuat joined 08:53 melezhik_ left, melezhik_ joined 08:54 arkiuat left 08:59 melezhik_ left, melezhik_ joined 09:05 melezhik_ left, melezhik_ joined 09:11 arkiuat joined 09:14 melezhik_ left, melezhik_ joined 09:15 abraxxa left 09:16 arkiuat left 09:17 arkiuat joined 09:20 melezhik_ left 09:21 melezhik_ joined, arkiuat left 09:26 abraxxa-home joined 09:30 abraxxa-home left 09:32 abraxxa-home joined 09:34 melezhik_ left, melezhik_ joined 09:48 stanrifkin left 09:50 arkiuat joined, Aedil joined 09:55 arkiuat left 09:58 melezhik_ left, melezhik_ joined 10:14 melezhik_ left, melezhik_ joined 10:23 melezhik_ left, melezhik_ joined 10:24 arkiuat joined 10:29 arkiuat left 10:34 melezhik_ left, melezhik_ joined 10:42 vasko4535588 joined 10:44 vasko453558 left, vasko4535588 is now known as vasko453558 10:48 melezhik_ left, melezhik_ joined 10:51 arkiuat joined 10:56 arkiuat left 11:01 melezhik_ left, melezhik_ joined 11:07 arkiuat joined 11:10 melezhik_ left, melezhik_ joined 11:12 arkiuat left 11:18 Sgeo_ left 11:21 melezhik_ left, melezhik_ joined 11:29 melezhik_ left, melezhik_ joined 11:34 melezhik_ left, melezhik_ joined 11:37 arkiuat joined 11:40 melezhik_ left, melezhik_ joined 11:45 arkiuat left 11:47 arkiuat joined 11:51 melezhik_ left, melezhik_ joined 11:56 melezhik_ left, melezhik_ joined 12:02 melezhik_ left, melezhik_ joined, vasko453558 left 12:05 vasko453558 joined 12:11 melezhik_ left, melezhik_ joined 12:14 stanrifkin joined 12:19 melezhik_ left, melezhik_ joined 12:24 arkiuat left 12:27 melezhik_ left, melezhik_ joined 12:28 arkiuat joined 12:36 melezhik_ left, melezhik_ joined 12:41 melezhik_ left, melezhik_ joined 12:47 melezhik_ left, melezhik_ joined 12:55 melezhik_ left, melezhik_ joined 13:01 melezhik_ left, melezhik_ joined 13:09 melezhik_ left, melezhik_ joined 13:29 melezhik_ left, melezhik_ joined 13:35 melezhik_ left, melezhik_ joined 13:47 vasko4535587 joined 13:48 vasko453558 left, vasko4535587 is now known as vasko453558 13:51 melezhik_ left, melezhik_ joined 13:57 melezhik_ left, melezhik_ joined 14:02 melezhik_ left, melezhik_ joined 14:09 melezhik_ left 14:10 melezhik_ joined 14:21 melezhik_ left, melezhik_ joined 14:32 melezhik_ left, melezhik_ joined 14:34 arkiuat left 14:39 melezhik_ left, melezhik_ joined 14:43 vasko453558 left 14:44 vasko453558 joined 14:50 arkiuat joined 14:55 arkiuat left 14:59 melezhik_ left, melezhik_ joined 15:06 melezhik_ left, melezhik_ joined 15:11 arkiuat joined 15:13 melezhik_ left 15:14 melezhik_ joined 15:16 arkiuat left 15:20 melezhik joined 15:24 melezhik_ left, melezhik_ joined 15:31 melezhik_ left 15:32 melezhik_ joined 15:39 melezhik_ left, ashfield joined 15:41 melezhik_ joined
ashfield I tried to do something (1, 2) (elem) ((1, 2), (3, 4)), but this is False, so, (1) how come it's False and (2) what's the correct way to see if a list is a member of a list of lists? 15:46
something like(* 15:47
15:47 arkiuat joined 15:50 phogg left 15:52 arkiuat left 15:53 phogg joined 15:58 melezhik_ left 16:00 melezhik_ joined 16:04 arkiuat joined
lizmat m: (1, 2).item (elem) ((1, 2), (3, 4)) 16:05
camelia WARNINGS for <tmp>:
Useless use of "(elem)" in expression ".item (elem) ((1, 2), (3, 4))" in sink context (line 1)
lizmat m: say (1, 2).item (elem) ((1, 2), (3, 4))
camelia False
lizmat heh the problem is that lists aren't value types 16:06
m: dd (1,2).WHICH, (1,2).WHICH
camelia ObjAt.new("List|6311739674928")
ObjAt.new("List|6311739675024")
16:07
ashfield that makes sense
lizmat note the lists have different WHICH's
ashfield yeah
lizmat perhaps raku.land/zef:lizmat/ValueList can be of use
Voldenet m: say ((1, 2), (3, 4)).first({ $_ eq (1, 2) }).so 16:09
camelia True
Voldenet kinda bruteforce-ish but it's what you have to do anyway
lizmat that depends on the stringification of (1,2)... which may be troublesome for something like: 16:10
ashfield yeah, it's not impossible to write a function/method to iterate over the second list and test with eqv
lizmat m: say <<a "b c" d>>
camelia (a b c d)
ashfield I'll have a look at ValueList as well
lizmat m: say ((1, 2), (3, 4)).first({ $_ eqv (1, 2) }).so 16:11
camelia True
lizmat eqv could work
m: say ([1, 2], (3, 4)).first({ $_ eqv (1, 2) }).so
camelia False
ashfield I was just wondering if there was some library function I was overlooking or something for "contains-list" or something
Voldenet ah, right, eqv could work better
lizmat well, as Voldenet pointed out, there's .first
Voldenet or smartmatch
sadly most languages don't contain such thing for lists comparison 16:13
16:16 melezhik_ left, melezhik_ joined
Voldenet the whole .so approach has caveat 16:17
m: say ([1, 2], (3, 4)).first({ $_ ~~ (1, 2) }).so # this works
camelia True
Voldenet m: say ([1, 2], ()).first({ $_ ~~ () }).so # this doesn't, because .so on empty list is False 16:18
camelia False
Voldenet m: say ([1, 2], (3, 4)).first({ $_ ~~ (1, 2) }).defined # this works as long as you don't try to look for Nil 16:19
camelia True
Voldenet so… 16:20
m: say ([1, 2], (3, 4)).first({ $_ ~~ (1, 2) }, :k).defined # this is probably the best way, it returns index of the found value or nil
camelia True
ashfield ah, right, I misread what .first was doing earlier 16:22
m: say [||] ((1,2),(3,4)).map: { $_ eqv (1,2) } 16:23
camelia True
Voldenet || will not work as you think 16:24
ashfield oh really?
Voldenet m: say [||] ((1,2),(3,4),(5,6)).map: { say $_; $_ eqv (1,2) } # no short-circuiting
camelia (1 2)
(3 4)
(5 6)
True
Voldenet btw, I suggest a very tiny addition to standard library 16:25
ashfield oh, yeah, I understand that it's making the whole list of bools first, if that's what you mean
I suppose that's less efficient than .first
Voldenet m: say ([1, 2], (3,4), Nil).contains((1, 2)) # this could simply do smartmatching
camelia Calling '.contains' on a List, did you mean '$item (elem) @list'?
True
in block <unit> at <tmp> line 1
Use of Nil in string context
in block <unit> at <tmp> line 1
ugexe contains on a list stringifies the lhs 16:26
m: say ([1,2],[3,4]).contains((2,3)) 16:28
camelia Calling '.contains' on a List, did you mean '$item (elem) @list'?
True
in block <unit> at <tmp> line 1
Voldenet indeed, but it'd be very convenient to have special .contains for Iterable 16:29
16:34 melezhik_ left 16:35 melezhik_ joined
Voldenet m: sub has(Iterable $x, $y) { my $n = $x.iterator; until (my $item := $n.pull-one) =:= IterationEnd { return True if $item ~~ $y; }; False }; say ([1, 2], (3,4), Nil, 1).&has((1,2)); 16:36
camelia True
Voldenet additional bonus is that it runs ACCEPTS so this is possible 16:37
m: sub has(Iterable $x, $y) { my $n = $x.iterator; until (my $item := $n.pull-one) =:= IterationEnd { return True if $item ~~ $y; }; False }; say ([1, 2], (3,4), Nil, 1).&has(Int);
camelia True
Voldenet and additional downside is that it runs ACCEPTS of course, strict equality is useful in some cases 16:40
16:45 melezhik_ left 16:46 melezhik_ joined 16:52 melezhik_ left 16:53 melezhik_ joined 17:00 melezhik_ left, melezhik_ joined 17:01 melezhik_ left 18:38 melezhik_ joined 18:46 melezhik_ left, melezhik_ joined 18:52 melezhik_ left, melezhik_ joined 19:07 melezhik_ left, melezhik_ joined 19:11 lichtkind_ left 19:16 melezhik_ left, melezhik_ joined 19:25 melezhik_ left 19:52 Sgeo joined 20:00 melezhik left 20:05 derpydoo joined 20:13 abraxxa-home left 20:37 melezhik joined 20:47 Aedil left 21:25 derpydoo left
disbot6 <aruniecrisps> @SmokeMachine @holmdunc @librasteve I can start working on the red migrations module, but I don't think I'll have anything major done in time for raku advent let's see 21:54
<aruniecrisps> Or actually maybe I will, I probably just have tonm sit down and grind it out
21:56 librasteve_ joined
disbot6 <librasteve> arun: thanks for hacking on this ... just shout out if you need any help 22:15
<librasteve> Voldenet: I like this idea of special contains for Iterables ... perhaps a raku problem solving issue? 22:16
23:36 Guest33 joined 23:50 vrurg left