2024/11/11

Newest at the top

2024-11-11 14:29:40 +0100 <mauke> they're the maximum of an infinite list, which requires scanning every element, which doesn't terminate
2024-11-11 14:29:24 +0100 <mauke> yin: the list elements don't exist
2024-11-11 14:22:29 +0100longlongdouble(~longlongd@117.234.151.38)
2024-11-11 14:21:35 +0100mari-estel(~mari-este@user/mari-estel) (Quit: overflow)
2024-11-11 14:15:30 +0100merijn(~merijn@77.242.116.146) merijn
2024-11-11 14:14:50 +0100comerijn(~merijn@77.242.116.146) (Ping timeout: 244 seconds)
2024-11-11 14:10:38 +0100weary-traveler(~user@user/user363627) user363627
2024-11-11 14:05:00 +0100Inst_(~Inst@user/Inst) (Ping timeout: 272 seconds)
2024-11-11 14:02:13 +0100liamzy__(~Inst@user/Inst) Inst
2024-11-11 13:56:45 +0100NN12(~NN12@31.154.179.218) (Quit: Client closed)
2024-11-11 13:49:12 +0100longlongdouble(~longlongd@117.234.82.14) (Ping timeout: 252 seconds)
2024-11-11 13:44:03 +0100 <yin> https://status.haskell.org/
2024-11-11 13:43:34 +0100 <yin> lxsameer: yes
2024-11-11 13:42:31 +0100supercode(~supercode@user/supercode) (Quit: Client closed)
2024-11-11 13:41:27 +0100manwithluck(manwithluc@gateway/vpn/protonvpn/manwithluck) manwithluck
2024-11-11 13:40:40 +0100 <lxsameer> is it just me or haskell's wiki seems to be down for a while now
2024-11-11 13:39:39 +0100Smiles(uid551636@id-551636.lymington.irccloud.com) Smiles
2024-11-11 13:36:45 +0100manwithluck(manwithluc@gateway/vpn/protonvpn/manwithluck) (Remote host closed the connection)
2024-11-11 13:33:50 +0100longlongdouble(~longlongd@117.234.82.14)
2024-11-11 13:25:10 +0100alexherbo2(~alexherbo@2a02-8440-3212-95c5-b589-9816-90ce-8611.rev.sfr.net) (Remote host closed the connection)
2024-11-11 13:22:08 +0100troydm(~troydm@user/troydm) troydm
2024-11-11 13:21:45 +0100 <lambdabot> mueval-core: Time limit exceeded
2024-11-11 13:21:38 +0100 <yin> > let (m,mls) = foldr (\x ~(mx,ls') -> (max x mx,m:ls')) (0,[]) [0..] in take 3 mls
2024-11-11 13:21:36 +0100alexherbo2(~alexherbo@2a02-8440-3212-95c5-b589-9816-90ce-8611.rev.sfr.net) alexherbo2
2024-11-11 13:21:15 +0100alexherbo2(~alexherbo@2a02-8440-3212-95c5-b466-a96b-5a6c-41ad.rev.sfr.net) (Remote host closed the connection)
2024-11-11 13:21:05 +0100 <lambdabot> • Perhaps you meant one of these:
2024-11-11 13:21:05 +0100 <lambdabot> • Variable not in scope: ls :: [a1]
2024-11-11 13:21:05 +0100 <lambdabot> error:
2024-11-11 13:21:04 +0100 <yin> > let (m,mls) = foldr (\x ~(mx,ls') -> (max x mx,m:ls)) (0,[]) [0..] in take 3 mls
2024-11-11 13:20:02 +0100 <yin> get the list, not just its length
2024-11-11 13:09:49 +0100Leonard76(~Leonard26@49.236.10.26) (Quit: Client closed)
2024-11-11 13:06:06 +0100 <mauke> I thought I did. but define "work"
2024-11-11 13:04:49 +0100ChaiTRex(~ChaiTRex@user/chaitrex) ChaiTRex
2024-11-11 13:03:06 +0100Chai-T-Rex(~ChaiTRex@user/chaitrex) (Ping timeout: 260 seconds)
2024-11-11 12:59:08 +0100merijn(~merijn@77.242.116.146) (Ping timeout: 272 seconds)
2024-11-11 12:58:38 +0100 <yin> mauke: can you make it work with infinite lists?
2024-11-11 12:56:29 +0100misterfish(~misterfis@31-161-39-137.biz.kpn.net) misterfish
2024-11-11 12:55:44 +0100comerijn(~merijn@77.242.116.146) merijn
2024-11-11 12:53:32 +0100ljdarj(~Thunderbi@user/ljdarj) (Quit: ljdarj)
2024-11-11 12:52:59 +0100visilii(~visilii@85.172.77.90) (Ping timeout: 252 seconds)
2024-11-11 12:49:57 +0100visilii_(~visilii@85.172.77.14)
2024-11-11 12:48:17 +0100 <Leonard76> Thank you :)
2024-11-11 12:47:55 +0100 <mauke> or at least easier to read because the lines are shorter :-)
2024-11-11 12:47:46 +0100 <mauke> actually, https://play-haskell.tomsmeding.com/saved/bpe3NAbH might be more sensible
2024-11-11 12:46:53 +0100 <Leonard76> Thank you for your quick answer, I'm going to look into it now :)
2024-11-11 12:46:24 +0100youthlic(~Thunderbi@user/youthlic) youthlic
2024-11-11 12:45:38 +0100 <mauke> your first attempt is wrong because it uses lists of ints as keys, not values
2024-11-11 12:45:36 +0100merijn(~merijn@77.242.116.146) merijn
2024-11-11 12:45:25 +0100 <mauke> MyMap.fromList does not exist. there is no module called MyMap in your code
2024-11-11 12:44:58 +0100 <mauke> Leonard76: https://play-haskell.tomsmeding.com/saved/Kmp64Ubg