Logs: freenode/#haskell
| 2021-04-22 16:56:43 | × | LKoen quits (~LKoen@11.160.9.109.rev.sfr.net) (Remote host closed the connection) |
| 2021-04-22 16:57:34 | × | gehmehgeh quits (~ircuser1@gateway/tor-sasl/gehmehgeh) (Quit: Leaving) |
| 2021-04-22 16:58:49 | <fendor> | band, compilation worked for me out of the box for the pdftotext |
| 2021-04-22 16:58:53 | <fendor> | maybe share your errors? |
| 2021-04-22 17:01:09 | <geekosaur> | and what platform (Macs with clang may report different things from Linux or Windows with gcc) |
| 2021-04-22 17:02:49 | → | Pickchea joins (~private@unaffiliated/pickchea) |
| 2021-04-22 17:03:04 | × | nut quits (~gtk@roc37-h01-176-170-197-243.dsl.sta.abo.bbox.fr) (Ping timeout: 252 seconds) |
| 2021-04-22 17:03:25 | → | Tuplanolla joins (~Tuplanoll@91-159-68-239.elisa-laajakaista.fi) |
| 2021-04-22 17:03:49 | → | Inexes joins (5534d86f@111.pool85-52-216.static.orange.es) |
| 2021-04-22 17:03:57 | × | band quits (~band@104-57-176-102.lightspeed.austtx.sbcglobal.net) (Ping timeout: 260 seconds) |
| 2021-04-22 17:04:01 | <Inexes> | Hi all!! |
| 2021-04-22 17:04:12 | × | conal quits (~conal@64.71.133.70) (Quit: Computer has gone to sleep.) |
| 2021-04-22 17:05:00 | <hyperisco> | hi |
| 2021-04-22 17:05:00 | → | danso joins (~dan@23-233-111-52.cpe.pppoe.ca) |
| 2021-04-22 17:06:10 | <Inexes> | Can I ask a question about an exercise that I have? |
| 2021-04-22 17:07:01 | → | stree joins (~stree@68.36.8.116) |
| 2021-04-22 17:07:13 | <geekosaur> | generally you should just ask instead of asking to ask |
| 2021-04-22 17:10:02 | × | kritzefitz quits (~kritzefit@212.86.56.80) (Ping timeout: 268 seconds) |
| 2021-04-22 17:10:14 | → | fresheyeball joins (~isaac@c-71-237-105-37.hsd1.co.comcast.net) |
| 2021-04-22 17:12:22 | <Inexes> | Ok, so I have a list of lists a = [[1,1,1,1], [1,2,3,1], [1,2,3,1], [1,1,1,1] ], and I need to take them out 2 by 2 to take them to a function that compares them. (sorry for my English, I use google translator), for example. -fx (x1: x2: xs) = compare x1 x2 ... but I no longer know how to make it compare the following lists ... |
| 2021-04-22 17:13:22 | → | LKoen joins (~LKoen@11.160.9.109.rev.sfr.net) |
| 2021-04-22 17:13:34 | <Inexes> | the idea is to compare x1 x2, next x2 x3, and finally x3 x4 |
| 2021-04-22 17:14:45 | <hpc> | Inexes: think about how to make a list that has x2 and x3 as its first elements |
| 2021-04-22 17:14:56 | <hpc> | Inexes: you can pass that list to fx, and then do something to combine all the results |
| 2021-04-22 17:15:00 | → | Sorna joins (~Sornaensi@077213200034.dynamic.telenor.dk) |
| 2021-04-22 17:17:22 | × | idhugo_ quits (~idhugo@87-49-147-45-mobile.dk.customer.tdc.net) (Ping timeout: 252 seconds) |
| 2021-04-22 17:18:06 | × | Sornaensis quits (~Sornaensi@79.142.232.102.static.router4.bolignet.dk) (Ping timeout: 240 seconds) |
| 2021-04-22 17:18:17 | → | jamm_ joins (~jamm@unaffiliated/jamm) |
| 2021-04-22 17:19:35 | <Inexes> | My idea is that when comparing x1 and x2 this is added to another list, "list x", for example, and when comparing with the rest, the whole result is added to "list x". The other functions I have already created and they work, but I don't know how to do this ... |
| 2021-04-22 17:19:35 | <hpc> | Inexes: you may also want to try one of the channels on https://wiki.haskell.org/IRC_channel#Language.2FCountry_specific |
| 2021-04-22 17:20:50 | <Inexes> | Hpc, I tried my native language channel, but nobody answered me :( |
| 2021-04-22 17:20:55 | <hpc> | :( |
| 2021-04-22 17:22:35 | <hpc> | one way to approach it is |
| 2021-04-22 17:23:01 | <hpc> | say you have your input list [w, x, y, z] |
| 2021-04-22 17:23:12 | <hpc> | or, w : x : y : z : [] |
| 2021-04-22 17:23:36 | → | heatsink joins (~heatsink@108-201-191-115.lightspeed.sntcca.sbcglobal.net) |
| 2021-04-22 17:23:38 | <hpc> | the output would be compare w x : compare x y : compare y z : [] |
| 2021-04-22 17:23:49 | <hpc> | but what happens if the input list is just [x, y, z]? |
| 2021-04-22 17:24:16 | <hpc> | and think about how those output lists relate to each other |
| 2021-04-22 17:25:01 | <hpc> | or if the input list is just [y, z] |
| 2021-04-22 17:25:37 | <hpc> | with [w, x, y, z], when you pass that to fx, x1 = w, x2 = x, and xs = [y, z] |
| 2021-04-22 17:25:56 | → | nut joins (~gtk@roc37-h01-176-170-197-243.dsl.sta.abo.bbox.fr) |
| 2021-04-22 17:26:20 | → | gzj joins (~gzj@unaffiliated/gzj) |
| 2021-04-22 17:26:37 | × | vicfred quits (~vicfred@unaffiliated/vicfred) (Remote host closed the connection) |
| 2021-04-22 17:27:09 | → | vicfred joins (~vicfred@unaffiliated/vicfred) |
| 2021-04-22 17:27:52 | × | nan` quits (~nan`@unaffiliated/nan/x-5405850) (Quit: leaving) |
| 2021-04-22 17:27:58 | × | vicfred quits (~vicfred@unaffiliated/vicfred) (Max SendQ exceeded) |
| 2021-04-22 17:28:04 | <Inexes> | Ok I will try that solution, for this exercise it can help me. Thank you hpc |
| 2021-04-22 17:29:02 | → | vicfred joins (~vicfred@unaffiliated/vicfred) |
| 2021-04-22 17:29:43 | × | vicfred quits (~vicfred@unaffiliated/vicfred) (Max SendQ exceeded) |
| 2021-04-22 17:31:07 | × | gzj quits (~gzj@unaffiliated/gzj) (Ping timeout: 252 seconds) |
| 2021-04-22 17:31:11 | → | aveltras joins (uid364989@gateway/web/irccloud.com/x-cudhvvtoyvyrmfsp) |
| 2021-04-22 17:33:10 | → | kiweun joins (~kiweun@2607:fea8:2a62:9600:890d:2e48:a6a5:21d5) |
| 2021-04-22 17:34:05 | × | jneira quits (501e65b6@gateway/web/cgi-irc/kiwiirc.com/ip.80.30.101.182) (Ping timeout: 268 seconds) |
| 2021-04-22 17:34:46 | <zzz> | c_wraith: filterM is terribly inneficient. more so than the naive solution |
| 2021-04-22 17:34:48 | <zzz> | https://gist.github.com/jrvieira/2820b46856ba1ec89453946557b0f427 |
| 2021-04-22 17:35:17 | <zzz> | i must be doing something wrong |
| 2021-04-22 17:35:59 | → | band joins (~band@104-57-176-102.lightspeed.austtx.sbcglobal.net) |
| 2021-04-22 17:36:38 | <c_wraith> | nah, I wouldn't expect it to be efficient compared to something more direct. |
| 2021-04-22 17:37:33 | × | kiweun quits (~kiweun@2607:fea8:2a62:9600:890d:2e48:a6a5:21d5) (Ping timeout: 258 seconds) |
| 2021-04-22 17:37:44 | × | Rudd0 quits (~Rudd0@185.189.115.103) (Ping timeout: 246 seconds) |
| 2021-04-22 17:38:45 | → | Sgeo_ joins (~Sgeo@ool-18b98aa4.dyn.optonline.net) |
| 2021-04-22 17:39:20 | → | unlink_ joins (~unlink2@p200300ebcf12ad00ad652fa1ddae7806.dip0.t-ipconnect.de) |
| 2021-04-22 17:39:25 | → | wroathe_ joins (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net) |
| 2021-04-22 17:40:05 | → | smerdyakov3 joins (~dan@5.146.195.164) |
| 2021-04-22 17:40:12 | → | MidAutumnHotaru7 joins (~MidAutumn@unaffiliated/midautumnhotaru) |
| 2021-04-22 17:40:14 | → | haya0 joins (~haya@ec2-18-231-117-140.sa-east-1.compute.amazonaws.com) |
| 2021-04-22 17:40:16 | → | texasmynsted_ joins (~texasmyns@99.96.221.112) |
| 2021-04-22 17:40:30 | → | L1Cafe9 joins (~L1Cafe@kydara.com) |
| 2021-04-22 17:40:33 | → | dcoutts joins (~duncan@94.186.125.91.dyn.plus.net) |
| 2021-04-22 17:40:58 | → | jrm2 joins (~jrm@freebsd/developer/jrm) |
| 2021-04-22 17:41:05 | → | dminuoso joins (~dminuoso@static.88-198-218-68.clients.your-server.de) |
| 2021-04-22 17:41:15 | → | haasn` joins (~nand@mpv/developer/haasn) |
| 2021-04-22 17:41:18 | → | carbolymer_ joins (~carbolyme@dropacid.net) |
| 2021-04-22 17:41:20 | → | rann_ joins (sid175221@gateway/web/irccloud.com/x-htpbeywwyvgnitzj) |
| 2021-04-22 17:41:38 | → | amosbird_ joins (~amosbird@13.75.119.182) |
| 2021-04-22 17:41:52 | → | dmj`_ joins (sid72307@gateway/web/irccloud.com/x-hiydzdvhdibdbilo) |
| 2021-04-22 17:41:57 | → | glamas_ joins (~glamas@107.182.17.237) |
| 2021-04-22 17:42:12 | → | seven_three joins (~user@pool-96-233-64-53.bstnma.fios.verizon.net) |
| 2021-04-22 17:42:24 | → | ephemera__ joins (~E@122.34.1.187) |
| 2021-04-22 17:42:25 | × | geekosaur quits (930099da@rrcs-147-0-153-218.central.biz.rr.com) (Quit: Connection closed) |
| 2021-04-22 17:42:31 | × | band quits (~band@104-57-176-102.lightspeed.austtx.sbcglobal.net) (Ping timeout: 260 seconds) |
| 2021-04-22 17:42:40 | → | charukiewicz_ joins (~quassel@irouteince04.i.subnet.rcn.com) |
| 2021-04-22 17:42:41 | <seven_three> | is a function partial if it uses `error`? |
| 2021-04-22 17:42:45 | <zzz> | ah ok. i was expecting similar performance, being the same algorithm. but i get why it's not |
| 2021-04-22 17:42:48 | → | vilarinux joins (~vilarinux@2804:1b3:3080:8d7:d8fb:9884:f9f1:feb1) |
| 2021-04-22 17:43:01 | <zzz> | seven_three: i would say so |
| 2021-04-22 17:43:17 | → | malthe_ joins (~mborch@46.101.103.63) |
| 2021-04-22 17:43:18 | → | falsifia1 joins (~falsifian@exoco.falsifian.org) |
| 2021-04-22 17:43:23 | → | bob_twinkles_ joins (~quassel@ec2-52-37-66-13.us-west-2.compute.amazonaws.com) |
| 2021-04-22 17:43:29 | → | machined1od joins (~machinedg@135-23-192-217.cpe.pppoe.ca) |
| 2021-04-22 17:43:34 | <seven_three> | zzz: ok thanks |
| 2021-04-22 17:43:38 | → | SIben_ joins (~SIben@ns3106586.ip-5-135-191.eu) |
| 2021-04-22 17:43:57 | → | tms__ joins (thomaav@cassarossa.samfundet.no) |
| 2021-04-22 17:43:58 | × | vilarinux quits (~vilarinux@2804:1b3:3080:8d7:d8fb:9884:f9f1:feb1) (Client Quit) |
| 2021-04-22 17:44:00 | → | cohn_ joins (~noone@23.239.18.252) |
| 2021-04-22 17:44:06 | → | oleks_ joins (~oleks@188.166.34.97) |
| 2021-04-22 17:44:10 | → | geekosaur joins (930099da@rrcs-147-0-153-218.central.biz.rr.com) |
| 2021-04-22 17:45:31 | → | dsrt^ joins (dsrt@ip98-184-89-2.mc.at.cox.net) |
| 2021-04-22 17:47:11 | <fresheyeball> | with a standard Setup.hs |
All times are in UTC.